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