Class: VagrantPlugins::DevCommands::Commandfile

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/devcommands/commandfile.rb

Overview

Loads and handles the Commandfile

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Commandfile

Returns a new instance of Commandfile.



5
6
7
# File 'lib/vagrant/devcommands/commandfile.rb', line 5

def initialize(env)
  @env = env
end

Instance Method Details

#exist?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/vagrant/devcommands/commandfile.rb', line 9

def exist?
  nil != find_commandfile
end

#pathObject



13
14
15
# File 'lib/vagrant/devcommands/commandfile.rb', line 13

def path
  find_commandfile
end