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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90fe3b560d15b77340789009ffe63c32c4055727
4
- data.tar.gz: 8a9820aa5d25246b4d52ea86b5abfd84f850dddb
3
+ metadata.gz: 2d927f9c4c24f053c1cb2b3d68b0aeda5e30b265
4
+ data.tar.gz: 0d71841e0e57bd2a3939752114b1210c34634f16
5
5
  SHA512:
6
- metadata.gz: 940b8b8f9ef1d2e1497060840247c34fb0b9a3d6442d63da179b8e2c3bff260013d314c7d5c89f632c6dfce017216bbe669e80ea5d32bd081c829f35eba058c1
7
- data.tar.gz: 50461207c4d8347f2c9247b9f48eb948c9d4ad2fecc2b3cd2b6bdc627fba06830c22f7bfe831253bdf8edc1e674f21d04be403bf52dff11593aa34da123c80b1
6
+ metadata.gz: 59860f3717d4de2bf05dd7e9253c961dccde907db5e5dd28bd2289bedffd4b0ad0fd6534f32096c7b030a6c0541ed539edae6d30c3efa487ace4f3888ee6b2bc
7
+ data.tar.gz: 5f598d6b7e8516e2ddec002b0f349278cb384413b0c56b43ac6064fbfd9e7aa3ded2ba592ba8868712e3710227f4345412698ef5d0a17b0da8b6efb19142efeb
@@ -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 [optional_description_of_the_task]
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::NamedBase
4
+ class TaskGenerator < Rails::Generators::Base
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
  argument :name, :type => :string
7
- argument :description, :type => :string, :default => ''
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'
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-06-10 00:00:00.000000000 Z
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