eac_cli 0.15.1 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_cli/version.rb +1 -1
- metadata +2 -3
- data/lib/eac_cli/runner_with/output_file.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 901db493185f12775a163c9d1b017b32e520a62d48952eead7d6fef94a0dde64
|
4
|
+
data.tar.gz: 474e78827b8ddd3b91f94a65fc250a9aaa36caece0377de75206c344cac06318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5594e5963d7e093ee29ceb4214e5d42deac0b59ca449d64dcbc06c2998806bf1011fdf592dfe395ad8269caca8b0b3d79656ab2d8f47a93594833b211406a01
|
7
|
+
data.tar.gz: 89345d413dbd1c7cd52f1fa4ae08c20a2276f307e7c557e94ddf66dbbbbe14f967f0ec7570ac14e40921679702f1b5a7a97c31e69dc1b718e81727f2c4eab97c
|
data/lib/eac_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- lib/eac_cli/runner/instance_methods.rb
|
88
88
|
- lib/eac_cli/runner_with.rb
|
89
89
|
- lib/eac_cli/runner_with/help.rb
|
90
|
-
- lib/eac_cli/runner_with/output_file.rb
|
91
90
|
- lib/eac_cli/runner_with/subcommands.rb
|
92
91
|
- lib/eac_cli/runner_with_set.rb
|
93
92
|
- lib/eac_cli/version.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_cli/runner'
|
4
|
-
require 'eac_ruby_utils/core_ext'
|
5
|
-
require 'eac_ruby_utils/abstract_methods'
|
6
|
-
|
7
|
-
module EacCli
|
8
|
-
module RunnerWith
|
9
|
-
module OutputFile
|
10
|
-
common_concern do
|
11
|
-
include ::EacCli::Runner
|
12
|
-
include ::EacRubyUtils::AbstractMethods
|
13
|
-
|
14
|
-
abstract_methods :output_content
|
15
|
-
|
16
|
-
runner_definition do
|
17
|
-
arg_opt '-o', '--output-file', 'Output to file.'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def run_output
|
22
|
-
if parsed.output_file.present?
|
23
|
-
::File.write(parsed.output_file, output_content)
|
24
|
-
else
|
25
|
-
$stdout.write(output_content)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|