Skip to content

Commit

Permalink
Don't set grunt_target_path by default
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Dec 5, 2013
1 parent aed6fe9 commit 9164e96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ To specify a `Gruntfile`, use the `:grunt_file` option:
set :grunt_file, -> { release_path.join('config/Gruntfile.js') }
```

All configurable options are shown here with their defaults:
Configurable options:

```ruby
set :grunt_file, nil
set :grunt_tasks, nil
set :grunt_flags, '--no-color'
set :grunt_roles, :all
set :grunt_target_path, nil
set :grunt_file, nil # default
set :grunt_tasks, nil # default
set :grunt_flags, '--no-color' # default
set :grunt_roles, :all # default
set :grunt_target_path, release_path.join('subdir') # default not set
```

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion capistrano-grunt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'capistrano-grunt'
spec.version = '0.0.3'
spec.version = '0.0.4'
spec.authors = ['Scott Walkinshaw', 'Koen Punt']
spec.email = ['[email protected]', '[email protected]']
spec.description = %q{Grunt support for Capistrano 3.x}
Expand Down
3 changes: 1 addition & 2 deletions lib/capistrano/tasks/grunt.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ desc <<-DESC
DESC
task :grunt do
on roles fetch(:grunt_roles) do
within fetch(:grunt_target_path, :release_path) do
within fetch(:grunt_target_path, release_path) do
options = [
fetch(:grunt_flags)
]
Expand All @@ -35,7 +35,6 @@ namespace :load do
set :grunt_file, nil
set :grunt_tasks, nil
set :grunt_flags, '--no-color'
set :grunt_target_path, nil
set :grunt_roles, :all
end
end

0 comments on commit 9164e96

Please sign in to comment.