Module: ZendeskAppsTools::Common::ClassMethods

Defined in:
lib/zendesk_apps_tools/common.rb

Instance Method Summary collapse

Instance Method Details

#shared_options(except: []) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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