jobly 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c30619af90ea2929ecbe6966a9c515e5e86bf19728b4591a766a5c7626eb3762
4
- data.tar.gz: f980761646544de125e9c2556a93d4f845572e137b8b8540ea6cde3c0710e9b6
3
+ metadata.gz: 58e109a2e288e0d56bf80e4a02a16cb9204bdcdfae3ce2eb5c8738965e3615d4
4
+ data.tar.gz: e0d84850f934656c1a63ed7ca54c31109c7554cfd5af0e61d4450b2066abb647
5
5
  SHA512:
6
- metadata.gz: 1d46adee990d9287070bebe4e823fdde5703566bd6186ff915d52b7c320381c2aa61be45cd433beeffd36011a12af6a268a598e80c0872670ec6424864ecd9a3
7
- data.tar.gz: 0ec76efc4a3cfd436dfc9f4c36fd8997db47fb20134f93f69843e0faa3ef7c7f6d0dc3f02ac76b0882b1925e20e4fcdc554efd78b9caec0dfaee06117c704a5b
6
+ metadata.gz: 43836699c613de62c9149a90493c1f139d543b9f1bed028c36c123b2b8f1520a91b75f66f216f359f0874ea5e56f898949e49cdcb7250e6e37658c0814986df9
7
+ data.tar.gz: 5fd4e5998e387f495423e5121a940ebecdf0d723dfc4127f8b35117681437145ca0c9cb86c846da71c8d12de43fda8b13ad9b7776f6cc9105d3a48fcb8dc6e30
data/bin/jobly CHANGED
@@ -7,10 +7,10 @@ require 'jobly'
7
7
  require 'jobly/boot'
8
8
 
9
9
  PrettyTrace.filter [
10
- %r[commands/run],
11
10
  %r[mister_bin],
12
11
  %r[bin/jobly],
13
12
  %r[bin/ruby],
13
+ %r[lib/jobly],
14
14
  ]
15
15
 
16
16
  router = Jobly::CLI.router
@@ -17,6 +17,7 @@ module Jobly
17
17
  router.route 'send', to: Commands::SendCmd
18
18
  router.route 'run', to: Commands::RunCmd
19
19
  router.route 'config', to: Commands::ConfigCmd
20
+ router.route 'info', to: Commands::InfoCmd
20
21
 
21
22
  router
22
23
  end
@@ -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
@@ -1,5 +1,6 @@
1
1
  module Jobly
2
2
  class Error < StandardError; end
3
3
  class JobNotFound < Error; end
4
+ class InfoFileNotFound < Error; end
4
5
  class HTTPError < Error; end
5
6
  end
@@ -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
+
@@ -13,3 +13,4 @@ export JOBLY_AUTH=admin:secret
13
13
  export JOBLY_SLACK_WEBHOOK=https://hooks.slack.com/services/...
14
14
  export JOBLY_SLACK_CHANNEL=#debug
15
15
  export JOBLY_SLACK_USER=Botly
16
+ export JOBLY_SHELL_DRY_RUN=1
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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-26 00:00:00.000000000 Z
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.3
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.3
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