Sha256: df33d731a705a5055d9d571c5bc5ad99930f22445fc474458e235c47cc6c7fa6

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

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

### Local gem modifications
If you want to modify gems setup for development needs, create a file `Gemfile.local` 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 for debugging when [Pry Debugger](https://github.com/nixme/pry-debugger) is installed alongside.

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

```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

9 entries across 9 versions & 1 rubygems

Version Path
hammer_cli-0.1.0 doc/development_tips.md
hammer_cli-0.0.18 doc/development_tips.md
hammer_cli-0.0.16 doc/development_tips.md
hammer_cli-0.0.15 doc/development_tips.md
hammer_cli-0.0.14 doc/development_tips.md
hammer_cli-0.0.13 doc/development_tips.md
hammer_cli-0.0.12 doc/development_tips.md
hammer_cli-0.0.11 doc/development_tips.md
hammer_cli-0.0.10 doc/development_tips.md