after_party 1.4 → 1.5
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 -5
- 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: 2d927f9c4c24f053c1cb2b3d68b0aeda5e30b265
|
|
4
|
+
data.tar.gz: 0d71841e0e57bd2a3939752114b1210c34634f16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59860f3717d4de2bf05dd7e9253c961dccde907db5e5dd28bd2289bedffd4b0ad0fd6534f32096c7b030a6c0541ed539edae6d30c3efa487ace4f3888ee6b2bc
|
|
7
|
+
data.tar.gz: 5f598d6b7e8516e2ddec002b0f349278cb384413b0c56b43ac6064fbfd9e7aa3ded2ba592ba8868712e3710227f4345412698ef5d0a17b0da8b6efb19142efeb
|
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 after_party:task task_name
|
|
6
|
+
rails generate after_party:task task_name --description=optional_description_of_the_task
|
|
7
7
|
|
|
8
8
|
This will create:
|
|
9
9
|
lib/tasks/deployment/<timestamp>_data_update.rake
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
require 'date'
|
|
2
2
|
module AfterParty
|
|
3
3
|
module Generators
|
|
4
|
-
class TaskGenerator < Rails::Generators::
|
|
4
|
+
class TaskGenerator < Rails::Generators::Base
|
|
5
5
|
source_root File.expand_path('../templates', __FILE__)
|
|
6
6
|
argument :name, :type => :string
|
|
7
|
-
|
|
7
|
+
class_option :description, :type => :string, :description => "Include a description"
|
|
8
8
|
|
|
9
9
|
def copy_deploy_task
|
|
10
|
-
|
|
11
10
|
template "deploy.rake", "lib/tasks/deployment/#{timestamp}_#{file_name}.rake"
|
|
12
|
-
|
|
13
11
|
end
|
|
14
12
|
|
|
15
13
|
private
|
|
@@ -18,7 +16,7 @@ module AfterParty
|
|
|
18
16
|
end
|
|
19
17
|
|
|
20
18
|
def task_description
|
|
21
|
-
"Deployment task: #{description.blank? ? file_name : description}"
|
|
19
|
+
"Deployment task: #{options.description.blank? ? file_name : options.description}"
|
|
22
20
|
end
|
|
23
21
|
|
|
24
22
|
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.5'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Mitchell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Automated post-deploy tasks for Ruby/Rails. Your deployment is the party.
|
|
14
14
|
This is the after party
|