lib/gondler/cli.rb in gondler-0.0.3 vs lib/gondler/cli.rb in gondler-0.1.0

- old
+ new

@@ -3,21 +3,21 @@ require 'pathname' require 'gondler' module Gondler class CLI < Thor - class_option :gomfile, type: :string, default: 'Gomfile' - class_option :path, type: :string, default: '.gondler' + class_option :gomfile, :type => :string, :default => 'Gomfile' + class_option :path, :type => :string, :default => '.gondler' def initialize(*args) super set_environments end desc 'install', 'Install the dependecies specified in your Gomfile' - method_option :without, type: :array, default: [] + method_option :without, :type => :array, :default => [] def install gomfile.packages.each do |package| puts "Install #{package}" package.resolve end @@ -47,10 +47,10 @@ end Kernel.exec(*args.join(' ')) end desc 'list', 'Show all of the dependencies in the current bundle' - method_option :without, type: :array, default: [] + method_option :without, :type => :array, :default => [] def list Gondler.withouts = options[:without] puts 'Packages included by the gondler:' gomfile.packages.each do |package|