Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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,))
Esempio n. 6
0
 def build(self):
     run('sudo mkdir %s' % (self.output_file,))
     run('sudo chmod 700 %s' % (self.output_file,))
Esempio n. 7
0
 def build(self):
     run('cp -r inner/* %s' % (InnerDirectory().output_file,))
Esempio n. 8
0
 def build_flag(self):
     run('pacman -Syu --noconfirm')
Esempio n. 9
0
 def build(self):
     run('yaourt -S --noconfirm %s' % (self.package_name,))
Esempio n. 10
0
 def build_flag(self):
     run('systemctl enable xbmc')
Esempio n. 11
0
 def build(self):
     run('pacman -S yaourt --noconfirm')
Esempio n. 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)
Esempio n. 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)
Esempio n. 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, ))
Esempio n. 15
0
 def build(self):
     run('sudo mkdir %s' % (self.output_file, ))
     run('sudo chmod 700 %s' % (self.output_file, ))
Esempio n. 16
0
 def build(self):
     run('cp -r inner/* %s' % (InnerDirectory().output_file, ))