Sha256: 54e3ce6867b394fadc61b47eb25f52196e366ae47995d9bc3ae48b1f549c58c1

Contents?: true

Size: 1.02 KB

Versions: 50

Compression:

Stored size: 1.02 KB

Contents

Development Tips
----------------

### Local gem modifications
If you want to modify the gems setup for development needs, create a file `Gemfile.local.rb` in the root of your hammer-cli checkout. You can override the setup from `Gemfile` there. This file is git-ignored so you can easily keep your custom tuning.

Typical usage is for linking plugins from local checkouts:
```ruby
gem 'hammer_cli_foreman', :path => '../hammer-cli-foreman'
```

### Debugging with Pry
[Pry](https://github.com/pry/pry) is a runtime developer console for ruby.
It allows debugging when [Pry Debugger](https://github.com/nixme/pry-debugger) is installed alongside.

For basic usage, add following the lines to your `Gemfile.local.rb`:

```ruby
gem 'pry'
gem 'pry-debugger', :platforms => [:ruby_19]
```

Then add this line at the place where you want the script to break:

```ruby
require 'pry'; binding.pry
```

Pry Debugger supports all expected debugging features.
See [its documentation](https://github.com/nixme/pry-debugger#pry-debugger-) for details.

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
hammer_cli-3.14.0 doc/development_tips.md
hammer_cli-3.13.0 doc/development_tips.md
hammer_cli-3.12.0 doc/development_tips.md
hammer_cli-3.10.0 doc/development_tips.md
hammer_cli-3.9.0 doc/development_tips.md
hammer_cli-3.8.0 doc/development_tips.md
hammer_cli-3.7.0 doc/development_tips.md
hammer_cli-3.5.1 doc/development_tips.md
hammer_cli-3.6.0 doc/development_tips.md
hammer_cli-3.5.0 doc/development_tips.md
hammer_cli-3.4.0 doc/development_tips.md
hammer_cli-3.3.0 doc/development_tips.md
hammer_cli-3.2.0 doc/development_tips.md
hammer_cli-3.1.1 doc/development_tips.md
hammer_cli-3.0.2 doc/development_tips.md
hammer_cli-3.1.0 doc/development_tips.md
hammer_cli-3.0.1 doc/development_tips.md
hammer_cli-3.0.0 doc/development_tips.md
hammer_cli-2.5.1 doc/development_tips.md
hammer_cli-2.5.0 doc/development_tips.md