aries_ruby_cli 0.0.9 → 0.0.10
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/aries_ruby_cli.gemspec +0 -1
- data/exe/aries_ruby +13 -2
- data/lib/aries_ruby_cli/version.rb +1 -1
- metadata +1 -16
- data/lib/aries_ruby_cli.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 325d128d6f731fe8bebf80de93bd43e40d8ad58a
|
4
|
+
data.tar.gz: 35e6977bd9c304fcc5a9deaaef8f3138bb58f1be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 023a25d70b10353bf1f9c7615041b36c9f811f345f35e717366a584960478fc22b8c1d7a7ba152269a3e8050f0e40c5b6a03efc1ad7f8591698eb40fa6a5dca9
|
7
|
+
data.tar.gz: 185828add66e2b47f6ad1dcebaca5dc484b6aa49f1e3d242b22bf2c216fcde05e858b2840edb5fefbd17f6b4607fe80a6aeed2b88d43effbbdaa8010cf520579
|
data/aries_ruby_cli.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency "thor"
|
24
23
|
spec.add_dependency "activesupport"
|
25
24
|
|
26
25
|
spec.add_development_dependency "bundler", "~> 1.14"
|
data/exe/aries_ruby
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
require "active_support/core_ext/string/inflections"
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
def run_task(input, config, execution_date)
|
7
|
+
$LOAD_PATH.unshift(File.join(Dir.pwd, 'lib')) unless $LOAD_PATH.include?(File.join(Dir.pwd, 'lib'))
|
8
|
+
task_name = ENV['TASK_NAME']
|
9
|
+
require task_name
|
10
|
+
activity = task_name.tr('-', '_').classify.constantize.new
|
11
|
+
output = activity.on_task(JSON.parse(input), JSON.parse(config), execution_date)
|
12
|
+
at_exit { puts output }
|
13
|
+
end
|
14
|
+
|
15
|
+
run_task(ARGV[0], ARGV[1], ARGV[2])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aries_ruby_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alois
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: thor
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: activesupport
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,7 +113,6 @@ files:
|
|
127
113
|
- bin/console
|
128
114
|
- bin/setup
|
129
115
|
- exe/aries_ruby
|
130
|
-
- lib/aries_ruby_cli.rb
|
131
116
|
- lib/aries_ruby_cli/version.rb
|
132
117
|
homepage: http://www.astronomer.io
|
133
118
|
licenses:
|
data/lib/aries_ruby_cli.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require "thor"
|
2
|
-
require "active_support/core_ext/string/inflections"
|
3
|
-
require 'json'
|
4
|
-
|
5
|
-
module AriesRubyCli
|
6
|
-
class CLI < Thor
|
7
|
-
def self.say_hello
|
8
|
-
puts "Hello World!"
|
9
|
-
end
|
10
|
-
|
11
|
-
desc "run_task ARIES_ACTIVITY_NAME CONFIG EXECUTION_DATE", "Runs an Aries Activity"
|
12
|
-
def run_task(input, config, execution_date)
|
13
|
-
$LOAD_PATH.unshift(File.join(Dir.pwd, 'lib')) unless $LOAD_PATH.include?(File.join(Dir.pwd, 'lib'))
|
14
|
-
task_name = ENV['TASK_NAME']
|
15
|
-
require task_name
|
16
|
-
activity = task_name.tr('-', '_').classify.constantize.new
|
17
|
-
output = activity.on_task(JSON.parse(input), JSON.parse(config), execution_date)
|
18
|
-
at_exit { puts output }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|