oneshot_task_generator 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b35743f117a7ab221abb9342c3259e5d73b9e53aa4de7956e3117350724ab187
|
4
|
+
data.tar.gz: 69a8cf94f8388777bf198fd96a7d08d291aeecdbb8e13980a3bd8c517a28c839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e5a3c54e9bc6d7d8dade7ad1a2aa4546b76fb2fa4aa44c8149a9dd2a1432925b7170de6d729fa8cbf54153e9c5cf0d71158768d5aeed55fbd61e8589d44859c
|
7
|
+
data.tar.gz: 7a4a8921412ff677f61740be661098133943e7e9ed0d16c23d537f7296af7dd2b1b1d0ea340fa8f21822e27276b40be1c7c86bd7e30328ab3b0a5303a2aefcc1
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -64,6 +64,25 @@ namespace :oneshot do
|
|
64
64
|
end
|
65
65
|
```
|
66
66
|
|
67
|
+
### Arguments
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# config/initializers/ohesnot_task_generator.rb
|
71
|
+
OneshotGenerator.configure do |config|
|
72
|
+
config.arguments = ['task', 'args']
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
# Skeleton for this file was generated by `bin/rails generate oneshot FooBar`
|
78
|
+
# For copy and paste: `bin/rake oneshot:foo_bar_20180208`
|
79
|
+
namespace :oneshot do
|
80
|
+
desc ''
|
81
|
+
task foo_bar_20180208: :environment do |task, args|
|
82
|
+
end
|
83
|
+
end
|
84
|
+
```
|
85
|
+
|
67
86
|
## Contributing
|
68
87
|
|
69
88
|
Bug reports and pull requests are welcome on GitHub at https://github.com/s-osa/oneshot_task_generator.
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= "# For copy and paste: `bin/rake oneshot:#{task_name}`" %>
|
5
5
|
namespace :oneshot do
|
6
6
|
desc ''
|
7
|
-
task <%= task_name %>: :environment do
|
7
|
+
task <%= task_name %>: :environment do<%= configuration.arguments && " |#{configuration.arguments.join(", ")}|" %>
|
8
8
|
<%- if configuration.body -%>
|
9
9
|
<%- configuration.body.each_line.map(&:chomp).each do |line| -%>
|
10
10
|
<%= line %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneshot_task_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OSA Shunsuke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|