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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b9025fd4b3e8a2ee35daaeb3b9c058732bfc88fc88891381761b2ee80b8d7fc
4
- data.tar.gz: 7586f94445866e5819a7d29667056c7f2cca94ed4b41e448396c17e9964bc474
3
+ metadata.gz: 74c9de556322b0b955c4f7e2130253d3201f726c30d111fd04ebbac04552463d
4
+ data.tar.gz: 8aace481e65512a3dd9b8be468d8dd02adfb4811597d50ec9b57c1f296088da7
5
5
  SHA512:
6
- metadata.gz: 87af85bbce27734b356fee01ed2097d5f77fc9fdc2f44f251cf5ccb07562944bc53c9b52c30602d0b991e5c6b9eb03ddb8195b23923812d4184bd5164cec9401
7
- data.tar.gz: d3ac178489ca8e8a3a99090d035e2d57cf55d5f93a8199d18a7ac9150d27d2ac48b1c4d70b1d45f9cf2b79f55327aeb1847b0f4a9ae73749cf787ea47b90bb58
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://travis-ci.com/DannyBen/runfile.svg?branch=master)](https://travis-ci.com/DannyBen/runfile)
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](https://raw.githubusercontent.com/DannyBen/runfile/master/demo.gif "Runfile Demo")
22
+ ![Runfile Demo](demo.svg "Runfile Demo")
24
23
 
25
- [Learn More in the Wiki](https://github.com/DannyBen/runfile/wiki)
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 in the [Runfile Location and Filename wiki page](https://github.com/DannyBen/runfile/wiki/Runfile-Location-and-Filename)
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)
@@ -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(*args)
83
- ExecHandler.instance.run(*args)
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!(*args)
89
- ExecHandler.instance.run!(*args)
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(*args)
96
- ExecHandler.instance.run_bg(*args)
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(*args)
103
- ExecHandler.instance.stop_bg(*args)
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
@@ -1,3 +1,3 @@
1
1
  module Runfile
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
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.0
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: 2018-12-11 00:00:00.000000000 Z
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
- rubyforge_project:
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