Sha256: 99932a2375ea1cb330c3b6b247565b9e2924263875aec1eefccfc17c8631b8df

Contents?: true

Size: 546 Bytes

Versions: 26

Compression:

Stored size: 546 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))
        hooks = defined?(Pry::Hooks) ? Pry::Hooks.new : {}
        binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout, :hooks => hooks)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
travis-1.8.1.travis.692.5 lib/travis/cli/console.rb
travis-1.8.1.travis.689.5 lib/travis/cli/console.rb
travis-1.8.0 lib/travis/cli/console.rb
travis-1.7.8.travis.688.5 lib/travis/cli/console.rb
travis-1.7.8.travis.687.5 lib/travis/cli/console.rb
travis-1.7.8.travis.684.5 lib/travis/cli/console.rb
travis-1.7.7 lib/travis/cli/console.rb
travis-1.7.7.travis.683.5 lib/travis/cli/console.rb
travis-1.7.7.travis.681.5 lib/travis/cli/console.rb
travis-1.7.7.travis.678.5 lib/travis/cli/console.rb
travis-1.7.6.travis.677.5 lib/travis/cli/console.rb
travis-1.7.6 lib/travis/cli/console.rb
travis-1.7.6.travis.676.5 lib/travis/cli/console.rb
travis-1.7.6.travis.675.5 lib/travis/cli/console.rb
travis-1.7.6.travis.673.5 lib/travis/cli/console.rb
travis-1.7.6.travis.673.6 lib/travis/cli/console.rb
travis-1.7.6.travis.672.5 lib/travis/cli/console.rb
travis-1.7.6.travis.671.5 lib/travis/cli/console.rb
travis-1.7.5 lib/travis/cli/console.rb
travis-1.7.5.travis.658.5 lib/travis/cli/console.rb