Module: ProvisionVagrant
- Defined in:
- lib/options.rb,
lib/generator.rb,
lib/interpolator.rb,
lib/pv_initializer.rb,
lib/provision_vagrant.rb
Defined Under Namespace
Classes: Generator, Interpolator, Options, PvInitializer
Constant Summary
collapse
- VAGRANTFILE_NAME =
"Vagrantfile.template"
- POST_HOOK_FILE_NAME =
"provision-vagrant.post-hook.sh"
- PROVISION_VAGRANT_CONFIG_FILE_NAME =
"provision-vagrant.yml"
- VAGRANTFILE_TARGET_NAME =
"Vagrantfile"
Class Method Summary
collapse
Class Method Details
.help(msg) ⇒ Object
16
17
18
19
|
# File 'lib/provision_vagrant.rb', line 16
def self.help(msg)
puts(Paint["\n#{msg}\n", :yellow])
exit(false)
end
|
.version ⇒ Object
8
9
10
|
# File 'lib/provision_vagrant.rb', line 8
def self.version
"1.1.1"
end
|
.write_string_to_File(string, file_path) ⇒ Object
12
13
14
|
# File 'lib/provision_vagrant.rb', line 12
def self.write_string_to_File(string, file_path)
File.open(file_path, "w") {|file| file.puts string }
end
|