Class: Travis::CLI::Setup::NPM
- Defined in:
- lib/travis/cli/setup/npm.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
description, #initialize, known_as?, #method_missing, normalized_name, service_name
Constructor Details
This class inherits a constructor from Travis::CLI::Setup::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::CLI::Setup::Service
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/travis/cli/setup/npm.rb', line 11 def run deploy 'npm', 'release' do |config| config['email'] ||= ask('npm email address: ') { |q| q }.to_s config['api_key'] ||= ask('npm api key: ') { |q| q.echo = '*' }.to_s on('release only tagged commits? ', config, 'tags' => true) end end |