Class: VagrantBootstrap::Bootstrap
- Inherits:
-
Object
- Object
- VagrantBootstrap::Bootstrap
- Defined in:
- lib/vagrant_bootstrap/bootstrap.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ Bootstrap
constructor
A new instance of Bootstrap.
- #setup ⇒ Object
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
#setup ⇒ Object
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. @opts[:name] puts HELP_TEXT % {name: @opts[:name]} end |