yadecli 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: bd02e8fe17367467d53fbfe244323c5cbca0403f3156e14a9ff489a13bd7b49e
4
- data.tar.gz: '0127984858109c3e80e40ba39a4466d6f387f2b9b4f907dba5e4bb3e4d9aba1e'
3
+ metadata.gz: 6c722a40ee8b219d575b01effc5d13272cae1ad5773180ae6e320d1341db15a8
4
+ data.tar.gz: 9a804d69b1b1fbe16cc4f13ca119675f6b3480699d7f7c6d97cc31fd8cb5612e
5
5
  SHA512:
6
- metadata.gz: 57a8e682a41898f554eb7a52528f16020b4f3390160d1fce71cafaa668bb8e117019a62716d42e7fd848949addaa5bda7980d8a5847b07da68416f83511a3477
7
- data.tar.gz: 7ebf650f2e5320a6b97867f952f0fb2a47064a50131116ec7578d75ed308268b6872e6339bd9a2f3795018b3d3a1cfc2bbfb3134dbd1870bfd3d1bec6452f8c6
6
+ metadata.gz: a095c3a63e10d5b24ce30dece48cf975e460ecdfd7fc1401cc62b8fb7088be846706de1206d69958e633b86773e46c9f502ecfeb2e406d0fae65e51f6ef443cf
7
+ data.tar.gz: e188f1c38bd30e752fdea2f80af48097adfaf8a7087925282ce83297cfd0b7e161a8dbd84afbcba9f6adc2b436d964574c1f0d5da65613a292669f471e45fc70
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yadecli (0.1.5)
4
+ yadecli (0.1.6)
5
5
  activemodel (~> 5.2)
6
6
  artii (~> 2.1)
7
7
  colorize (~> 0.8)
@@ -21,7 +21,7 @@ PATH
21
21
  yade-project-rest-client (~> 0.1)
22
22
 
23
23
  PATH
24
- remote: /Users/seba/projekte/yade/src/yade-common
24
+ remote: /home/freund/projekte/yade/src/yade-common
25
25
  specs:
26
26
  yade-common (0.1.2)
27
27
  activemodel (~> 5.2)
@@ -29,25 +29,25 @@ PATH
29
29
  settingslogic (~> 2.0)
30
30
 
31
31
  PATH
32
- remote: /Users/seba/projekte/yade/src/yade-composer-rest-client
32
+ remote: /home/freund/projekte/yade/src/yade-composer-rest-client
33
33
  specs:
34
- yade-composer-rest-client (0.1.2)
34
+ yade-composer-rest-client (0.1.1)
35
35
  activemodel (~> 5.2)
36
36
  httparty (~> 0.15)
37
37
  yade-common (~> 0.1)
38
38
 
39
39
  PATH
40
- remote: /Users/seba/projekte/yade/src/yade-domain-rest-client
40
+ remote: /home/freund/projekte/yade/src/yade-domain-rest-client
41
41
  specs:
42
- yade-domain-rest-client (0.1.2)
42
+ yade-domain-rest-client (0.1.1)
43
43
  activemodel (~> 5.2)
44
44
  httparty (~> 0.15)
45
45
  yade-common (~> 0.1)
46
46
 
47
47
  PATH
48
- remote: /Users/seba/projekte/yade/src/yade-project-rest-client
48
+ remote: /home/freund/projekte/yade/src/yade-project-rest-client
49
49
  specs:
50
- yade-project-rest-client (0.1.2)
50
+ yade-project-rest-client (0.1.1)
51
51
  activemodel (~> 5.2)
52
52
  httparty (~> 0.15)
53
53
  yade-common (~> 0.1)
@@ -23,7 +23,9 @@ require 'yadecli/cli/module'
23
23
  require 'yadecli/cli/task'
24
24
  require 'yadecli/cli/application'
25
25
  require 'yadecli/cli/response/project_start_response'
26
+
26
27
  require 'yadecli/client/gitlab_client'
28
+ require 'yadecli/client/application_status_client'
27
29
 
28
30
  require 'yadecli/command/connect_command'
29
31
  require 'yadecli/command/login_command'
@@ -47,14 +49,6 @@ require 'yadecli/command/composer/composer_stop_command'
47
49
  require 'yadecli/command/composer/composer_log_command'
48
50
  require 'yadecli/command/task/task_list_command'
49
51
 
50
- #require 'yadecli/service/connect_service'
51
- #require 'yadecli/service/authentication_service'
52
- #require 'yadecli/service/project_service'
53
- #require 'yadecli/service/module_service'
54
- #require 'yadecli/service/host_service'
55
- #require 'yadecli/service/build_task_service'
56
- #require 'yadecli/service/build_step_service'
57
- #require 'yadecli/service/composer_service'
58
52
  require 'yadecli/io/user_input'
59
53
 
60
54
  # yadecli
@@ -16,6 +16,12 @@ module Yadecli
16
16
  puts Yadecli::VERSION
17
17
  end
18
18
 
19
+ desc 'status', 'Print Version'
20
+ def status
21
+ client = Yade::Client::ApplicationStatusClient.new
22
+ client.get
23
+ end
24
+
19
25
  desc 'connect URL', 'Connect to a yade backend'
20
26
  def connect(yade_url)
21
27
  CliUtil.print_header('Yade Connect',
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+ require 'logger'
5
+ require 'json'
6
+
7
+ require 'yade/common/client/base_client'
8
+
9
+ module Yade
10
+ module Client
11
+ # project client
12
+ class ApplicationStatusClient < Yade::Common::Client::BaseClient
13
+ include HTTParty
14
+ # logger ::Logger.new(STDOUT), :debug
15
+
16
+ base_uri Yade::Common::Config::AppConfig[:yade_url]
17
+
18
+ def initialize
19
+ super('yadegateway', 'gateway/routes', nil)
20
+ end
21
+
22
+ # get
23
+ def get
24
+ response = get_request(nil)
25
+
26
+ response.parsed_response.each do |p|
27
+ puts ''
28
+ puts p['serviceId'] + ":"
29
+ puts " Instances"
30
+ p['serviceInstances'].each do |si|
31
+ puts " #{si['serviceId']} -> Status: #{si['instanceInfo']['status']}"
32
+ puts " Profiles: #{si['metadata']['profile']}"
33
+ puts " Version: #{si['metadata']['version']}"
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'mutations'
4
+ require 'dotenv'
4
5
 
5
6
  module Yadecli
6
7
  module Command
@@ -58,7 +58,7 @@ module Yadecli
58
58
  output = ssh.exec!("sudo #{local_repo}/scripts/ubuntu/setup-managed-host.sh #{host.hostName} #{domain.name} #{host.ip}")
59
59
  puts output if options[:verbose]
60
60
 
61
- output = ssh.exec!("sudo #{local_repo}/scripts/ubuntu/local-bootstrap.sh \"mc nano\"")
61
+ output = ssh.exec!("sudo #{local_repo}/scripts/ubuntu/local-bootstrap.sh \"mc nano gpgv2\"")
62
62
  puts output if options[:verbose]
63
63
 
64
64
  output = ssh.exec!("sudo #{local_repo}/scripts/ubuntu/puppet-install.sh")
@@ -1,3 +1,3 @@
1
1
  module Yadecli
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yadecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Freund
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-27 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yade-domain-rest-client
@@ -360,6 +360,7 @@ files:
360
360
  - lib/yadecli/cli/project.rb
361
361
  - lib/yadecli/cli/response/project_start_response.rb
362
362
  - lib/yadecli/cli/task.rb
363
+ - lib/yadecli/client/application_status_client.rb
363
364
  - lib/yadecli/client/gitlab_client.rb
364
365
  - lib/yadecli/command/composer/composer_install_command.rb
365
366
  - lib/yadecli/command/composer/composer_list_command.rb