Module: GitPusshuTen::Helpers::Environment::Packages

Included in:
Environment
Defined in:
lib/gitpusshuten/helpers/environment/packages.rb

Instance Method Summary collapse

Instance Method Details

#clean_up_packages!(path, user = 'user') ⇒ Object

Cleans up the gitpusshuten-packages git repository



14
15
16
# File 'lib/gitpusshuten/helpers/environment/packages.rb', line 14

def clean_up_packages!(path, user = 'user')
  send("execute_as_#{user}", "cd #{path}; rm -rf gitpusshuten-packages")
end

#download_packages!(path, user = 'user') ⇒ Object

Downloads the gitpusshuten packages



8
9
10
# File 'lib/gitpusshuten/helpers/environment/packages.rb', line 8

def download_packages!(path, user = 'user')
  send("execute_as_#{user}", "cd #{path}; git clone git://github.com/meskyanichi/gitpusshuten-packages.git")
end