Sha256: 057bcd2feb51e6c04f44df4733e85f28a601f49d1a157ddd8ab9e57a28e71a6e

Contents?: true

Size: 470 Bytes

Versions: 126

Compression:

Stored size: 470 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Console < ApiCommand
      description "interactive shell"
      on '-x', '--eval LINE', 'run line of ruby' do |c, line|
        c.instance_eval(line)
        exit
      end

      def run
        Travis::CLI.silent { require 'pry' }
        Object.send(:include, Client::Namespace.new(session))
        binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout)
      end
    end
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
travis-1.7.3.travis.649.5 lib/travis/cli/console.rb
travis-1.7.3.travis.647.5 lib/travis/cli/console.rb
travis-1.7.3.travis.646.5 lib/travis/cli/console.rb
travis-1.7.3.travis.644.5 lib/travis/cli/console.rb
travis-1.7.3.travis.641.5 lib/travis/cli/console.rb
travis-1.7.3.travis.640.5 lib/travis/cli/console.rb
travis-1.7.3.travis.637.5 lib/travis/cli/console.rb
travis-1.7.2 lib/travis/cli/console.rb
travis-1.7.2.travis.636.5 lib/travis/cli/console.rb
travis-1.7.2.travis.635.5 lib/travis/cli/console.rb
travis-1.7.2.travis.634.5 lib/travis/cli/console.rb
travis-1.7.2.travis.633.5 lib/travis/cli/console.rb
travis-1.7.2.travis.632.5 lib/travis/cli/console.rb
travis-1.7.2.travis.630.5 lib/travis/cli/console.rb
travis-1.7.2.travis.627.5 lib/travis/cli/console.rb
travis-1.7.2.travis.626.5 lib/travis/cli/console.rb
travis-1.7.2.travis.625.5 lib/travis/cli/console.rb
travis-1.7.2.travis.623.5 lib/travis/cli/console.rb
travis-1.7.2.travis.621.5 lib/travis/cli/console.rb
travis-1.7.1 lib/travis/cli/console.rb