Class: Subspace::Commands::Bootstrap

Inherits:
Base
  • Object
show all
Defined in:
lib/subspace/commands/bootstrap.rb

Constant Summary collapse

PASS_THROUGH_PARAMS =
["private-key"]

Instance Method Summary collapse

Methods inherited from Base

#confirm_overwrite, #copy, #dest_dir, #gem_path, #pass_through_params, #playbook_dir, #project_path, #require_configuration, #template, #template!, #template_dir

Methods included from Ansible

#ansible_command

Constructor Details

#initialize(args, options) ⇒ Bootstrap

Returns a new instance of Bootstrap.



4
5
6
7
8
9
10
# File 'lib/subspace/commands/bootstrap.rb', line 4

def initialize(args, options)
  @host_spec = args.first
  @options = options
  @ask_pass = options.password
  @yum = options.yum
  run
end

Instance Method Details

#runObject



12
13
14
15
16
# File 'lib/subspace/commands/bootstrap.rb', line 12

def run
  # ansible atlanta -m copy -a "src=/etc/hosts dest=/tmp/hosts"
  install_python
  ensure_ssh_dir
end