jobly 0.4.3 → 0.4.4
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/bin/jobly +1 -1
- data/lib/jobly/cli.rb +1 -0
- data/lib/jobly/commands/info.rb +35 -0
- data/lib/jobly/exceptions.rb +1 -0
- data/lib/jobly/templates/full/config/info.md +18 -0
- data/lib/jobly/templates/full/envrc.example +1 -0
- data/lib/jobly/version.rb +1 -1
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e109a2e288e0d56bf80e4a02a16cb9204bdcdfae3ce2eb5c8738965e3615d4
|
4
|
+
data.tar.gz: e0d84850f934656c1a63ed7ca54c31109c7554cfd5af0e61d4450b2066abb647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43836699c613de62c9149a90493c1f139d543b9f1bed028c36c123b2b8f1520a91b75f66f216f359f0874ea5e56f898949e49cdcb7250e6e37658c0814986df9
|
7
|
+
data.tar.gz: 5fd4e5998e387f495423e5121a940ebecdf0d723dfc4127f8b35117681437145ca0c9cb86c846da71c8d12de43fda8b13ad9b7776f6cc9105d3a48fcb8dc6e30
|
data/bin/jobly
CHANGED
data/lib/jobly/cli.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'tty-markdown'
|
2
|
+
|
3
|
+
module Jobly
|
4
|
+
module Commands
|
5
|
+
class InfoCmd < Base
|
6
|
+
summary "Show workspace info"
|
7
|
+
usage "jobly info"
|
8
|
+
usage "jobly info (-h|--help)"
|
9
|
+
|
10
|
+
def run
|
11
|
+
raise InfoFileNotFound, info_file unless File.exist? info_file
|
12
|
+
puts TTY::Markdown.parse(info, theme: {
|
13
|
+
header: [:green, :bold],
|
14
|
+
em: [:magenta, :bold],
|
15
|
+
hr: :yellow,
|
16
|
+
link: [:blue, :underline],
|
17
|
+
list: :cyan,
|
18
|
+
strong: [:cyan, :bold],
|
19
|
+
table: :yellow,
|
20
|
+
quote: :magenta
|
21
|
+
})
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
def info
|
26
|
+
@info ||= File.read info_file
|
27
|
+
end
|
28
|
+
|
29
|
+
def info_file
|
30
|
+
@info_file ||= File.expand_path 'info.md', Jobly.config_path
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/jobly/exceptions.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Jobs
|
2
|
+
|
3
|
+
Describe your jobs here using markdown.
|
4
|
+
|
5
|
+
The file will be displayed when running `jobly info`
|
6
|
+
|
7
|
+
# JobName
|
8
|
+
|
9
|
+
Describe the job
|
10
|
+
|
11
|
+
## Arguments:
|
12
|
+
|
13
|
+
*branch* (required)
|
14
|
+
Arg description here
|
15
|
+
|
16
|
+
*environment* (default: `production`)
|
17
|
+
Arg description here
|
18
|
+
|
data/lib/jobly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jobly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0.2'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.2.
|
36
|
+
version: 0.2.4
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0.2'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.2.
|
46
|
+
version: 0.2.4
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: puma
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,6 +198,20 @@ dependencies:
|
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0.9'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: tty-markdown
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0.6'
|
208
|
+
type: :runtime
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0.6'
|
201
215
|
- !ruby/object:Gem::Dependency
|
202
216
|
name: colsole
|
203
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -241,6 +255,7 @@ files:
|
|
241
255
|
- lib/jobly/cli.rb
|
242
256
|
- lib/jobly/commands/base.rb
|
243
257
|
- lib/jobly/commands/config.rb
|
258
|
+
- lib/jobly/commands/info.rb
|
244
259
|
- lib/jobly/commands/init.rb
|
245
260
|
- lib/jobly/commands/run.rb
|
246
261
|
- lib/jobly/commands/send.rb
|
@@ -273,6 +288,7 @@ files:
|
|
273
288
|
- lib/jobly/templates/full/Procfile
|
274
289
|
- lib/jobly/templates/full/app/job.rb
|
275
290
|
- lib/jobly/templates/full/app/other_class.rb
|
291
|
+
- lib/jobly/templates/full/config/info.md
|
276
292
|
- lib/jobly/templates/full/config/jobly.rb
|
277
293
|
- lib/jobly/templates/full/envrc.example
|
278
294
|
- lib/jobly/templates/full/jobs/hello.rb
|