bard 0.48.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/ci/github_actions.rb +1 -11
- data/lib/bard/config.rb +8 -1
- data/lib/bard/version.rb +1 -1
- data/lib/bard.rb +2 -2
- data/spec/bard/ci/github_actions_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cb419fc2b00c18d30f063e319aed724202e92a5fa90be7aedeaebbc9ffc7442
|
4
|
+
data.tar.gz: 7ed9b8e370081de8066f91c0ebc0096f1fd5ee68870f3c5e6653370f6457524e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4363c68ed6e10896ada82d79dbe990af712465fd9ac7434194e16af61a235a315d3e9f9be8a03726f307f1449228104da894f1e1a77ba073fcce2a40d29f72a9
|
7
|
+
data.tar.gz: f8a3736d63072637a27a790765ef7fbbecd4ee61cdec14aa03af390f76105cd965a118ce2f9bbad80f19c752d2b5e9373d2c62416014edd617b34e0ed5158e56
|
@@ -91,7 +91,7 @@ class Bard::CLI < Thor
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def success?
|
94
|
-
json["status"] == "success"
|
94
|
+
json["status"] == "completed" && json["conclusion"] == "success"
|
95
95
|
end
|
96
96
|
|
97
97
|
def job
|
@@ -101,16 +101,6 @@ class Bard::CLI < Thor
|
|
101
101
|
def console
|
102
102
|
job.logs
|
103
103
|
end
|
104
|
-
|
105
|
-
# OTHER STATUSES
|
106
|
-
# completed
|
107
|
-
# action_required
|
108
|
-
# cancelled
|
109
|
-
# failure
|
110
|
-
# neutral
|
111
|
-
# skipped
|
112
|
-
# stale
|
113
|
-
# timed_out
|
114
104
|
end
|
115
105
|
|
116
106
|
class Job < Struct.new(:api, :json)
|
data/lib/bard/config.rb
CHANGED
@@ -12,10 +12,17 @@ class Bard::CLI < Thor
|
|
12
12
|
"./",
|
13
13
|
false,
|
14
14
|
),
|
15
|
+
theia: Server.new(
|
16
|
+
project_name,
|
17
|
+
:theia,
|
18
|
+
"gubito@gubs.pagekite.me",
|
19
|
+
"Sites/#{project_name}",
|
20
|
+
false,
|
21
|
+
),
|
15
22
|
gubs: Server.new(
|
16
23
|
project_name,
|
17
24
|
:gubs,
|
18
|
-
"
|
25
|
+
"botandrose@cloud.hackett.world:22022",
|
19
26
|
"Sites/#{project_name}",
|
20
27
|
false,
|
21
28
|
),
|
data/lib/bard/version.rb
CHANGED
data/lib/bard.rb
CHANGED
@@ -149,8 +149,8 @@ class Bard::CLI < Thor
|
|
149
149
|
desc "ssh [TO=production]", "logs into the specified server via SSH"
|
150
150
|
def ssh to=:production
|
151
151
|
command = "exec $SHELL -l"
|
152
|
-
if to == "
|
153
|
-
server = @config.servers[:
|
152
|
+
if to == "theia" && !options["home"]
|
153
|
+
server = @config.servers[:theia]
|
154
154
|
command = %(bash -lic "exec ./vagrant \\"cd #{server.path} && #{command}\\"")
|
155
155
|
exec ssh_command(to, command, home: true)
|
156
156
|
else
|