lib/cumuli/cli/args.rb in cumuli-0.1.0 vs lib/cumuli/cli/args.rb in cumuli-0.2.0

- old
+ new

@@ -1,18 +1,20 @@ module Cumuli - class Args - attr_reader :argv, :dir + class CLI + class Args + attr_reader :argv, :dir - def initialize(argv) - @argv = argv - @dir ||= argv.shift - end + def initialize(argv) + @argv = argv + @dir ||= argv.shift + end - def name - @name ||= dir.match(/([a-z_]+)$/i)[0] - end + def name + @name ||= dir.match(/([a-z_]+)$/i)[0] + end - def foreman_options - argv.join(' ') + def foreman_options + argv.join(' ') + end end end end