Class: Bashy::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/bashy.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Run

Returns a new instance of Run.



102
103
104
105
106
107
108
# File 'lib/bashy.rb', line 102

def initialize(options = {})
  # Check that our directories are in tact.
  Bashy::check_and_load_config_directory
  unless options[:name].nil?
    exec(File.join(SNIPPET_PATH, options[:name]), *options[:args])
  end
end