datahen 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datahen/cli/account.rb +3 -0
- data/lib/datahen/cli/account_deploy_key.rb +26 -0
- data/lib/datahen/cli.rb +1 -2
- data/lib/datahen/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11c43658f61faff627da448abff393b5cc658c15e1dfd6765c6cfdee96958d01
|
4
|
+
data.tar.gz: 5dc4481c9755d33dcee2539a24fe1ba2b0336fc4320beaa54204d1636067ee75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e25db9321dfb26cb88d38aa9adf353c9955c3932553fb87affe235bd58f0182e7043775d102ce2bb5e7d6d0764cd76bd71f3be024ced38eadd17c05cfa0efd69
|
7
|
+
data.tar.gz: b07e2655df12424db7f859da29f0921fa6417dfbfa6b72537615089d6fabac7451e3e61e23ba4f4e8cfff0c0555ef50bf751dd8b91b8be8ae51b23d855145586
|
data/lib/datahen/cli/account.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Datahen
|
2
|
+
class CLI < Thor
|
3
|
+
class AccountDeployKey < Thor
|
4
|
+
package_name "account deploy_key"
|
5
|
+
def self.banner(command, namespace = nil, subcommand = false)
|
6
|
+
"#{basename} #{@package_name} #{command.usage}"
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "show", "Show public deploy key"
|
10
|
+
def show()
|
11
|
+
client = Client::DeployKey.new()
|
12
|
+
puts "#{client.find()}"
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "recreate", "Recreate public deploy key"
|
16
|
+
long_desc <<-LONGDESC
|
17
|
+
Recreate public deploy key.
|
18
|
+
LONGDESC
|
19
|
+
def recreate()
|
20
|
+
client = Client::DeployKey.new()
|
21
|
+
puts "#{client.create()}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/lib/datahen/cli.rb
CHANGED
@@ -16,10 +16,9 @@ require 'datahen/cli/parser'
|
|
16
16
|
require 'datahen/cli/seeder'
|
17
17
|
require 'datahen/cli/finisher'
|
18
18
|
require 'datahen/cli/env_var'
|
19
|
+
require 'datahen/cli/account_deploy_key'
|
19
20
|
require 'datahen/cli/account'
|
20
21
|
|
21
|
-
|
22
|
-
|
23
22
|
module Datahen
|
24
23
|
class CLI < Thor
|
25
24
|
desc "scraper SUBCOMMAND ...ARGS", "manage scrapers"
|
data/lib/datahen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datahen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parama Danoesubroto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- lib/datahen.rb
|
213
213
|
- lib/datahen/cli.rb
|
214
214
|
- lib/datahen/cli/account.rb
|
215
|
+
- lib/datahen/cli/account_deploy_key.rb
|
215
216
|
- lib/datahen/cli/env_var.rb
|
216
217
|
- lib/datahen/cli/finisher.rb
|
217
218
|
- lib/datahen/cli/global_page.rb
|