Skip to content

Commit

Permalink
RELATED: TMA-168 Remove pry
Browse files Browse the repository at this point in the history
  • Loading branch information
vhtien committed Dec 13, 2016
1 parent e83bf41 commit c475989
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 66 deletions.
4 changes: 0 additions & 4 deletions CLI.md
Expand Up @@ -223,10 +223,6 @@ tomaskorcak@kx-mac:~/$ gooddata -p tk6192gsnav58crp6o1ahsmtuniq8khb project invi
Inviting tomas.korcak@gooddata.com, role: /gdc/projects/tk6192gsnav58crp6o1ahsmtuniq8khb/roles/2
```

### project jack_in

If you are in a gooddata project blueprint or if you provide a project id it will start an interactive session inside that project

### project list_users

List users
Expand Down
8 changes: 0 additions & 8 deletions DEPENDENCIES.md
Expand Up @@ -524,14 +524,6 @@ Add parallel methods into Enumerable: pmap and peach

A few useful extensions to core Ruby classes.

<a name="pry"></a>
### <a href="http://pryrepl.org">pry</a> v0.10.3
#### An IRB alternative and runtime developer console

<a href="http://opensource.org/licenses/mit-license">MIT</a> whitelisted

An IRB alternative and runtime developer console

<a name="rainbow"></a>
### <a href="https://github.com/sickill/rainbow">rainbow</a> v2.0.0
#### Colorize printed text on ANSI terminals
Expand Down
1 change: 0 additions & 1 deletion gooddata.gemspec
Expand Up @@ -52,7 +52,6 @@ Gem::Specification.new do |s|
s.add_dependency 'multi_json', '~> 1.11.0'
s.add_dependency 'parseconfig', '~> 1.0.0'
s.add_dependency 'pmap', '~> 1.0.0'
s.add_dependency 'pry', '~> 0.10.0'
s.add_dependency 'restforce', '~> 2.4.0'
s.add_dependency 'rest-client', '~> 1.8.0'
s.add_dependency 'rubyzip', '~> 1.1.0'
Expand Down
17 changes: 0 additions & 17 deletions lib/gooddata/cli/commands/project_cmd.rb
Expand Up @@ -16,15 +16,6 @@ module CLI
arg_name 'project_command'

command :project do |c|
c.desc 'If you are in a gooddata project blueprint or if you provide a project id it will start an interactive session inside that project'
c.command :jack_in do |jack|
jack.action do |global_options, options, _args|
warn '[DEPRECATION] `gooddata project jack_in` is deprecated. Please use `gooddata jack_in` instead.'
opts = options.merge(global_options)
GoodData::Command::Project.jack_in(opts)
end
end

c.desc 'Shows users in project'
c.command :users do |users|
users.action do |global_options, options, _args|
Expand All @@ -33,13 +24,5 @@ module CLI
end
end
end

desc 'If you are in a gooddata project blueprint or if you provide a project id it will start an interactive session inside that project'
command :jack_in do |jack|
jack.action do |global_options, options, _args|
opts = options.merge(global_options)
GoodData::Command::Project.jack_in(opts)
end
end
end
end
1 change: 0 additions & 1 deletion lib/gooddata/cli/hooks.rb
Expand Up @@ -49,7 +49,6 @@
on_error do |_exception|
# Error logic here
# return false to skip default error handling
# binding.pry
# pp exception.backtrace
# pp exception
true
Expand Down
30 changes: 0 additions & 30 deletions lib/gooddata/commands/project.rb
Expand Up @@ -103,36 +103,6 @@ def validate(project_id, options = { client: GoodData.connection })
client.with_project(project_id, &:validate)
end

def jack_in(options)
goodfile_path = GoodData::Helpers.find_goodfile(Pathname('.'))

spin_session = proc do |goodfile|
project_id = options[:project_id] || goodfile[:project_id]

begin
require 'gooddata'
client = GoodData.connect(options)
project = client.projects(project_id) if project_id
puts "Use 'exit' to quit the live session. Use 'q' to jump out of displaying a large output."
binding.pry(:quiet => true, # rubocop:disable Lint/Debugger
:prompt => [proc do |_target_self, _nest_level, _pry|
'project_live_session: '
end])
rescue GoodData::ProjectNotFound
puts "Project with id \"#{project_id}\" could not be found. Make sure that the id you provided is correct."
end
end

if goodfile_path
goodfile = MultiJson.load(File.read(goodfile_path), :symbolize_keys => true)
FileUtils.cd(goodfile_path.dirname) do
spin_session.call(goodfile)
end
else
spin_session.call({}, nil)
end
end

# Lists roles in a project
#
# @param project_id [String | GoodData::Project] Project id or project instance to list the users in
Expand Down
1 change: 0 additions & 1 deletion lib/gooddata/models/process.rb
Expand Up @@ -4,7 +4,6 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require 'pry'
require 'zip'
require 'uri'

Expand Down
1 change: 0 additions & 1 deletion spec/bricks/bricks_spec.rb
Expand Up @@ -7,7 +7,6 @@
require 'gooddata/bricks/brick'
require 'gooddata/bricks/bricks'
require 'gooddata/bricks/middleware/base_middleware'
require 'pry'

describe GoodData::Bricks do
it "Has GoodData::Bricks::Brick class" do
Expand Down
1 change: 0 additions & 1 deletion spec/logging_in_logging_out_spec.rb
Expand Up @@ -5,7 +5,6 @@
# LICENSE file in the root directory of this source tree.

require 'gooddata'
require 'pry'

describe GoodData::Rest::Connection, :constraint => 'slow' do

Expand Down
1 change: 0 additions & 1 deletion spec/unit/models/blueprint/schema_builder_spec.rb
Expand Up @@ -4,7 +4,6 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require 'pry'
require 'gooddata/models/model'

describe GoodData::Model::SchemaBuilder do
Expand Down
1 change: 0 additions & 1 deletion spec/unit/models/model_spec.rb
Expand Up @@ -4,7 +4,6 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require 'pry'
require 'gooddata/models/model'

describe GoodData::Model do
Expand Down

0 comments on commit c475989

Please sign in to comment.