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.6.15.travis.550.6 lib/travis/cli/console.rb
travis-1.6.15.travis.547.6 lib/travis/cli/console.rb
travis-1.6.15.travis.544.6 lib/travis/cli/console.rb
travis-1.6.14.travis.543.6 lib/travis/cli/console.rb
travis-1.6.14 lib/travis/cli/console.rb
travis-1.6.14.travis.539.6 lib/travis/cli/console.rb
travis-1.6.13.travis.538.6 lib/travis/cli/console.rb
travis-1.6.13 lib/travis/cli/console.rb
travis-1.6.13.travis.536.6 lib/travis/cli/console.rb
travis-1.6.12 lib/travis/cli/console.rb
travis-1.6.13.travis.534.6 lib/travis/cli/console.rb
travis-1.6.12.travis.531.6 lib/travis/cli/console.rb
travis-1.6.12.travis.529.6 lib/travis/cli/console.rb
travis-1.6.12.travis.528.6 lib/travis/cli/console.rb
travis-1.6.12.travis.524.6 lib/travis/cli/console.rb
travis-1.6.12.travis.523.6 lib/travis/cli/console.rb
travis-1.6.12.travis.521.6 lib/travis/cli/console.rb
travis-1.6.12.travis.520.6 lib/travis/cli/console.rb
travis-1.6.12.travis.517.6 lib/travis/cli/console.rb
travis-1.6.11 lib/travis/cli/console.rb