Class: Kropka::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/kropka/cli.rb

Instance Method Summary collapse

Instance Method Details

#apply(recipe_file) ⇒ Object



6
7
8
9
10
# File 'lib/kropka/cli.rb', line 6

def apply(recipe_file)
  Kropka.load_recipe(recipe_file)

  Recipe.instance.apply!
end

#versionObject



14
15
16
# File 'lib/kropka/cli.rb', line 14

def version
  puts "Kropka #{ Kropka::VERSION }"
end