Class: VagrantBootstrap::Bootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_bootstrap/bootstrap.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Bootstrap

Returns a new instance of Bootstrap.



7
8
9
# File 'lib/vagrant_bootstrap/bootstrap.rb', line 7

def initialize(opts)
  @opts = opts
end

Instance Method Details

#setupObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/vagrant_bootstrap/bootstrap.rb', line 11

def setup
  puts "Setting up a Vagrant environment with"
  puts
  puts "  directory: #{@opts[:name]}"
  puts "  bridge:    #{@opts[:bridge]}"
  puts
  make_directory
  render
  full_path = File.expand_path @opts[:name]
  puts HELP_TEXT % {name: @opts[:name]}
end