Exemple #1
0
 def build(self):
     data = raw_input(
         'Are you sure you want to override %(device)s ? ' % self.paths)
     if not data.strip().lower() == 'yes':
         raise CommandAborted()
     print 'Copying...'
     run('sudo dd if=%(destination_img)s of=%(device)s' % self.paths)
Exemple #2
0
 def build(self):
     data = raw_input('Are you sure you want to override %(device)s ? ' %
                      self.paths)
     if not data.strip().lower() == 'yes':
         raise CommandAborted()
     print 'Copying...'
     run('sudo dd if=%(destination_img)s of=%(device)s' % self.paths)
Exemple #3
0
 def build(self):
     data = dict(self.settings)
     data.update(self.paths)
     run(
         'sudo mount -o loop,offset=%(image_address)d %(destination_img)s %(mount_dir)s' % data)
Exemple #4
0
 def build(self):
     data = dict(self.settings)
     data.update(self.paths)
     run('ssh %(pi_login)s@%(pi_host)s -t "%(remote_initscript)s"' %data)
Exemple #5
0
 def build(self):
     run('sudo cp %(public_key)s %(mounted_authorized_keys)s' % self.paths)
     run('sudo chmod 700 %s' % (self.output_file,))
Exemple #6
0
 def build(self):
     run('sudo mkdir %s' % (self.output_file,))
     run('sudo chmod 700 %s' % (self.output_file,))
Exemple #7
0
 def build(self):
     run('cp -r inner/* %s' % (InnerDirectory().output_file,))
Exemple #8
0
 def build_flag(self):
     run('pacman -Syu --noconfirm')
Exemple #9
0
 def build(self):
     run('yaourt -S --noconfirm %s' % (self.package_name,))
Exemple #10
0
 def build_flag(self):
     run('systemctl enable xbmc')
Exemple #11
0
 def build(self):
     run('pacman -S yaourt --noconfirm')
Exemple #12
0
 def build(self):
     data = dict(self.settings)
     data.update(self.paths)
     run('sudo mount -o loop,offset=%(image_address)d %(destination_img)s %(mount_dir)s'
         % data)
Exemple #13
0
 def build(self):
     data = dict(self.settings)
     data.update(self.paths)
     run('ssh %(pi_login)s@%(pi_host)s -t "%(remote_initscript)s"' % data)
Exemple #14
0
 def build(self):
     run('sudo cp %(public_key)s %(mounted_authorized_keys)s' % self.paths)
     run('sudo chmod 700 %s' % (self.output_file, ))
Exemple #15
0
 def build(self):
     run('sudo mkdir %s' % (self.output_file, ))
     run('sudo chmod 700 %s' % (self.output_file, ))
Exemple #16
0
 def build(self):
     run('cp -r inner/* %s' % (InnerDirectory().output_file, ))