after_party 1.2 → 1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/task/USAGE +1 -1
- data/lib/generators/task/task_generator.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9d5d87db4784372e629d3e7cb0daa0596055de6
|
|
4
|
+
data.tar.gz: b28bf00123d704e2bd165eeb77d354c7073f5b37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d587329cae69da206be48869fd220c251ab435b6be0c2771e59d43e7194ee3f477b130d17269c7595167270b2723f9143f608c38cb1048ce54e7e658f1976552
|
|
7
|
+
data.tar.gz: aa9d86ec147835a5b89b20f59f396f93ccba837569764b0130751cbf8544c4aa10c64eb22a4e0ceab2cc300826bd55d4147245a671bdcc93370a142fe7ad2d21
|
data/lib/generators/task/USAGE
CHANGED
|
@@ -3,7 +3,7 @@ Description:
|
|
|
3
3
|
second parameter with the task description is recommended.
|
|
4
4
|
|
|
5
5
|
Example:
|
|
6
|
-
rails generate
|
|
6
|
+
rails generate after_party:task task_name [optional_description_of_the_task]
|
|
7
7
|
|
|
8
8
|
This will create:
|
|
9
9
|
lib/tasks/deployment/<timestamp>_data_update.rake
|
|
@@ -4,7 +4,7 @@ module AfterParty
|
|
|
4
4
|
class TaskGenerator < Rails::Generators::NamedBase
|
|
5
5
|
source_root File.expand_path('../templates', __FILE__)
|
|
6
6
|
argument :name, :type => :string
|
|
7
|
-
argument :description, :type => :string, :default =>
|
|
7
|
+
argument :description, :type => :string, :default => ''
|
|
8
8
|
|
|
9
9
|
def copy_deploy_task
|
|
10
10
|
|
|
@@ -14,11 +14,11 @@ module AfterParty
|
|
|
14
14
|
|
|
15
15
|
private
|
|
16
16
|
def file_name
|
|
17
|
-
name.underscore
|
|
17
|
+
name.underscore
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def task_description
|
|
21
|
-
"Deployment task: #{description
|
|
21
|
+
"Deployment task: #{description.blank? ? file_name : description}"
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def timestamp
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: after_party
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.3'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Mitchell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|