Class: Selfiegram::Runner

Inherits:
Object show all
Defined in:
lib/runner/runner.rb,
lib/runner/options/options.rb

Defined Under Namespace

Classes: Options

Class Method Summary collapse

Class Method Details

.rootObject



10
11
12
# File 'lib/runner/runner.rb', line 10

def root
  File.expand_path(File.join(__FILE__, "../../../"))
end

.run(options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/runner/runner.rb', line 4

def run(options={})
  options = Options.new(options).to_h

  Selfiegram.send(options[:action], options)
end