Class: Purdie::CLI
- Inherits:
-
Thor
- Object
- Thor
- Purdie::CLI
- Defined in:
- lib/purdie/cli.rb
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/purdie/cli.rb', line 15 def fetch b = Bernard.new # b.source_file = options[:source_file] if options[:source_file] begin b.fetch rescue Exception => e $stderr.puts "\n" $stderr.puts e. # exit 1 end end |
#version ⇒ Object
6 7 8 |
# File 'lib/purdie/cli.rb', line 6 def version puts "purdie version #{VERSION}" end |