get-to-work 0.1.0 → 0.1.1
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/gtw +26 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 804b0aad851c041f277aed55bfdae04c31155ef2
|
4
|
+
data.tar.gz: be2a4353a26b3dea7a18827f8133cdea2539e6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bcca1666e34326a1eca46e6972747b53d5beb2de49b24537f020d959407b3a8b62c0f001dacd51f9b8c23883a881c4aa398a43b3d4ad353d41efa36f971b53a
|
7
|
+
data.tar.gz: b33dde3678a694db1830f35da4c001c39e7560f8f09c90ae523ed5da8be44e28716059b09d48f56ee0883d3a46890a4e18484425bd3d50941a856310e0674c4a
|
data/bin/gtw
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "get-to-work"
|
4
|
+
|
5
|
+
require "fileutils"
|
6
|
+
require "yaml"
|
7
|
+
include FileUtils
|
8
|
+
include YAML
|
9
|
+
|
10
|
+
# Get the current directory
|
11
|
+
cd = pwd()
|
12
|
+
|
13
|
+
# .gtw file path
|
14
|
+
gtw_path = "#{cd}/.gtw"
|
15
|
+
|
16
|
+
# Is there a .gtw file in the current directory?
|
17
|
+
if File.exist?(gtw_path)
|
18
|
+
# Load the YAML file and execute the commands found within
|
19
|
+
gtw = YAML.load_file(gtw_path)
|
20
|
+
# Execute every action, one after the other
|
21
|
+
gtw.each do |action|
|
22
|
+
system action
|
23
|
+
end
|
24
|
+
else
|
25
|
+
puts ".gtw file does not exist"
|
26
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: get-to-work
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Gilham
|
@@ -12,11 +12,13 @@ date: 2013-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: Easy, configurable project kickoff
|
14
14
|
email: me@briangilham.com
|
15
|
-
executables:
|
15
|
+
executables:
|
16
|
+
- gtw
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
19
20
|
- lib/get-to-work.rb
|
21
|
+
- bin/gtw
|
20
22
|
homepage: https://github.com/bgilham/get-to-work
|
21
23
|
licenses:
|
22
24
|
- MIT
|