module ZendeskAppsTools::Common::ClassMethods

Public Instance Methods

shared_options(except: []) click to toggle source
# File lib/zendesk_apps_tools/common.rb, line 5
def shared_options(except: [])
  unless except.include? :path
    method_option :path,
                  type: :string,
                  default: './',
                  aliases: ['-p']
  end
  unless except.include? :clean
    method_option :clean,
                  type: :boolean,
                  default: false
  end
  unless except.include? :unattended
    method_option :unattended,
                  type: :boolean,
                  default: false,
                  desc: 'Experimental: Never prompt for input, expecting all input from the original invocation. Many '\
                        'commands invoked with this option will just crash.'
  end
end