Sha256: d0d35aa47e8c43078040f9201b03c5f886b95d5a757bc3e980a85637d1f7cbc5

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

require 'travis/cli/setup'

module Travis
  module CLI
    class Setup
      class Ninefold < Service
        description 'Automatic deployment to Ninefold'

        def run
          deploy 'ninefold', 'release' do |config|
            config['app_id']     ||= ask('Ninefold App ID: ').to_s
            config['auth_token'] ||= ask('Ninefold Auth Token: ') { |q| q.echo = '*' }.to_s

            encrypt(config, 'auth_token') if agree('Encrypt Auth Token? ') { |q| q.default = 'yes' }
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
travis-1.14.0 lib/travis/cli/setup/ninefold.rb
travis-1.13.3 lib/travis/cli/setup/ninefold.rb
travis-1.13.2 lib/travis/cli/setup/ninefold.rb
travis-1.13.1 lib/travis/cli/setup/ninefold.rb
travis-1.13.0 lib/travis/cli/setup/ninefold.rb
travis-1.12.0 lib/travis/cli/setup/ninefold.rb