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.7.5.travis.656.5 lib/travis/cli/console.rb
travis-1.7.4 lib/travis/cli/console.rb
travis-1.7.4.travis.654.5 lib/travis/cli/console.rb
travis-1.7.3 lib/travis/cli/console.rb
travis-1.7.3.travis.653.5 lib/travis/cli/console.rb
travis-1.7.3.travis.651.5 lib/travis/cli/console.rb