Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update system topics to 1.9-style hashes (#313)

  • Loading branch information...
commit 8ce5f8adc55399d3af4ed7df23ae31c06f7e9b83 1 parent ae33f11
@kytrinyx kytrinyx authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 source/topics/systems/automation.markdown
View
6 source/topics/systems/automation.markdown
@@ -71,7 +71,7 @@ Defining a task within the namespace looks like this:
```ruby
namespace :myrailsapp do
- task :purge_audits => :environment do
+ task purge_audits: :environment do
puts "Purging old audits..."
Audit.purge
end
@@ -89,7 +89,7 @@ Finally, all tasks should have a `desc` call which is a brief, one line descript
```ruby
namespace :myrailsapp do
desc "Purge stale entries from audits table"
- task :purge_audits => :environment do
+ task purge_audits: :environment do
puts "Purging old audits..."
Audit.purge
end
@@ -134,7 +134,7 @@ Another way of passing parameters through is to include them after the rake comm
```ruby
namespace :myrailsapp do
desc "Run monthly report"
- task :montly_report => :environment do
+ task montly_report: :environment do
month = ENV['month'].to_i || Time.now.month
puts "Generate TPS report CSV..."
TpsWorker.export_csv(month)
Please sign in to comment.
Something went wrong with that request. Please try again.