Class: Purdie::CLI

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

Instance Method Summary collapse

Instance Method Details

#fetchObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/purdie/cli.rb', line 15

def fetch
  b = Bernard.new
  b.verbose = true
#      b.source_file = options[:source_file] if options[:source_file]

  begin
    b.fetch
  rescue Exception => e
    $stderr.puts "\n"
    $stderr.puts e.message
  #  exit 1
  end
end

#versionObject



6
7
8
# File 'lib/purdie/cli.rb', line 6

def version
  puts "purdie version #{VERSION}"
end