Class: VagrantPlugins::DevCommands::CommandFile
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::CommandFile
- Defined in:
- lib/vagrant/devcommands/command_file.rb
Overview
Loads and handles the Commandfile
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.
7 8 9 |
# File 'lib/vagrant/devcommands/command_file.rb', line 7 def initialize(env) @env = env end |
Instance Method Details
#exist? ⇒ Boolean
11 12 13 |
# File 'lib/vagrant/devcommands/command_file.rb', line 11 def exist? nil != path end |
#path ⇒ Object
15 16 17 |
# File 'lib/vagrant/devcommands/command_file.rb', line 15 def path find_commandfile end |
#path_global ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/vagrant/devcommands/command_file.rb', line 19 def path_global global = Pathname.new(Dir.home).join('.vagrant.devcommands') return global if global.file? nil end |