runfile 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/lib/runfile/dsl.rb +8 -8
- data/lib/runfile/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74c9de556322b0b955c4f7e2130253d3201f726c30d111fd04ebbac04552463d
|
4
|
+
data.tar.gz: 8aace481e65512a3dd9b8be468d8dd02adfb4811597d50ec9b57c1f296088da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f17e81d22aa4916c9d83490b9cc8e45a7f81f60308ab166683e0929e051f17d2f546a5d3188e2a41877c94798c4f533b0813b6e0f1de16d40b6efec97e3f557
|
7
|
+
data.tar.gz: 281b1656caf9f2abaf49fcc03ac831fd8e6f4af41dde1c2b1fd641729cc97c08390fdf686535ec208e717bdf05abe5a8e614d26d178ed04da56fc81db9873ba1
|
data/README.md
CHANGED
@@ -2,8 +2,7 @@ Runfile - If Rake and Docopt had a baby
|
|
2
2
|
==================================================
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/runfile.svg)](https://badge.fury.io/rb/runfile)
|
5
|
-
[![Build Status](https://
|
6
|
-
[![BCH compliance](https://bettercodehub.com/edge/badge/DannyBen/runfile?branch=master)](https://bettercodehub.com/results/DannyBen/runfile)
|
5
|
+
[![Build Status](https://github.com/DannyBen/runfile/workflows/Test/badge.svg)](https://github.com/DannyBen/runfile/actions?query=workflow%3ATest)
|
7
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/81cf02ccfcc8531cb09f/maintainability)](https://codeclimate.com/github/DannyBen/runfile/maintainability)
|
8
7
|
|
9
8
|
---
|
@@ -20,9 +19,9 @@ to [Rake](https://github.com/ruby/rake), but with the full power of
|
|
20
19
|
You create a `Runfile`, and execute commands with
|
21
20
|
`run command arguments -and --flags`.
|
22
21
|
|
23
|
-
![Runfile Demo](
|
22
|
+
![Runfile Demo](demo.svg "Runfile Demo")
|
24
23
|
|
25
|
-
[Learn More in the
|
24
|
+
[Learn More in the User Guide](https://runfile.dannyb.co)
|
26
25
|
|
27
26
|
---
|
28
27
|
|
@@ -114,13 +113,12 @@ When you execute `run`, we will look for files in this order:
|
|
114
113
|
When you execute `run!`, we will ignore any local Runfile and only search
|
115
114
|
for global (named) runfiles.
|
116
115
|
|
117
|
-
Read more
|
116
|
+
Read more on [Runfile Location and Filename](https://runfile.dannyb.co/Runfile-Location-and-Filename)
|
118
117
|
|
119
118
|
|
120
119
|
Documentation
|
121
120
|
--------------------------------------------------
|
122
121
|
|
122
|
+
- [User Guide](https://runfile.dannyb.co)
|
123
123
|
- [Learn by Example](https://github.com/DannyBen/runfile/tree/master/examples)
|
124
|
-
- [Runfile Command Reference](https://github.com/DannyBen/runfile/wiki/Runfile-Command-Reference)
|
125
|
-
- [Wiki](https://github.com/DannyBen/runfile/wiki)
|
126
124
|
- [Rubydoc](http://www.rubydoc.info/gems/runfile)
|
data/lib/runfile/dsl.rb
CHANGED
@@ -79,28 +79,28 @@ module Runfile
|
|
79
79
|
|
80
80
|
# Run a command, wait until it is done and continue
|
81
81
|
# run 'rails server'
|
82
|
-
def run(
|
83
|
-
ExecHandler.instance.run
|
82
|
+
def run(cmd)
|
83
|
+
ExecHandler.instance.run cmd
|
84
84
|
end
|
85
85
|
|
86
86
|
# Run a command, wait until it is done, then exit
|
87
87
|
# run! 'rails server'
|
88
|
-
def run!(
|
89
|
-
ExecHandler.instance.run!
|
88
|
+
def run!(cmd)
|
89
|
+
ExecHandler.instance.run! cmd
|
90
90
|
end
|
91
91
|
|
92
92
|
# Run a command in the background, optionally log to a log file and save
|
93
93
|
# the process ID in a pid file
|
94
94
|
# run_bg 'rails server', pid: 'rails', log: 'tmp/log.log'
|
95
|
-
def run_bg(
|
96
|
-
ExecHandler.instance.run_bg
|
95
|
+
def run_bg(cmd, pid: nil, log: '/dev/null')
|
96
|
+
ExecHandler.instance.run_bg cmd, pid: pid, log: log
|
97
97
|
end
|
98
98
|
|
99
99
|
# Stop a command started with 'run_bg'. Provide the name of he pid file you
|
100
100
|
# used in 'run_bg'
|
101
101
|
# stop_bg 'rails'
|
102
|
-
def stop_bg(
|
103
|
-
ExecHandler.instance.stop_bg
|
102
|
+
def stop_bg(pid)
|
103
|
+
ExecHandler.instance.stop_bg pid
|
104
104
|
end
|
105
105
|
|
106
106
|
# Set a block to be called before each run. The block should return
|
data/lib/runfile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
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:
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
|
88
|
-
rubygems_version: 2.7.6
|
87
|
+
rubygems_version: 3.1.2
|
89
88
|
signing_key:
|
90
89
|
specification_version: 4
|
91
90
|
summary: If Rake and Docopt had a baby
|