Class: VagrantPlugins::DevCommands::Commandfile
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::Commandfile
- Defined in:
- lib/vagrant/devcommands/commandfile.rb,
lib/vagrant/devcommands/commandfile/reader.rb,
lib/vagrant/devcommands/commandfile/modeler.rb
Overview
Loads and handles the Commandfile
Defined Under Namespace
Instance Method Summary collapse
- #exist? ⇒ Boolean
-
#initialize(env) ⇒ Commandfile
constructor
A new instance of Commandfile.
- #path ⇒ Object
- #path_global ⇒ Object
Constructor Details
#initialize(env) ⇒ Commandfile
Returns a new instance of Commandfile.
9 10 11 |
# File 'lib/vagrant/devcommands/commandfile.rb', line 9 def initialize(env) @env = env end |
Instance Method Details
#exist? ⇒ Boolean
13 14 15 |
# File 'lib/vagrant/devcommands/commandfile.rb', line 13 def exist? path != nil end |
#path ⇒ Object
17 18 19 |
# File 'lib/vagrant/devcommands/commandfile.rb', line 17 def path find_commandfile end |
#path_global ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/vagrant/devcommands/commandfile.rb', line 21 def path_global global = Pathname.new(Dir.home).join('.vagrant.devcommands') return global if global.file? nil end |