Class: AgileUtils::CLI

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

Instance Method Summary collapse

Instance Method Details

#mainObject



6
7
8
9
10
11
12
# File 'lib/agile_utils/cli.rb', line 6

def main
  opts = options.symbolize_keys
  if opts[:version]
    puts "You are using AgileUtils version #{AgileUtils::VERSION}"
    exit
  end
end

#usageObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/agile_utils/cli.rb', line 14

def usage
  puts "# List of available APIs\nrequire 'agile_utils'\ninclude AgileUtils\n\n# General methods\nAgileUtils::Helper.capture\nAgileUtils::Helper.make_list\nAgileUtils::Helper.shell\nAgileUtils::Helper.linux?\nAgileUtils::Helper.osx?\nAgileUtils::Helper.time\nAgileUtils::Helper.uname\nAgileUtils::FileUtil.find()\nAgileUtils::FileUtils.delete()\nAgileUtils::FileUtils.gunzip()\nAgileUtils::FileUtils.tar_gzip_files()\n  EOS\nend\n"