start-x 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/start +2 -2
- data/lib/start_x/config.rb +1 -3
- data/lib/start_x/project.rb +3 -4
- data/lib/start_x/version.rb +1 -1
- data/lib/start_x.rb +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc95b154f92cb5089086eeab5dce7008b950522
|
4
|
+
data.tar.gz: 9e17e7cfefea7942a87b16eaad17a2aaac42880c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8c208efadab1bcfe6528b15bf65eb8c07a597713822e5d3edfd40cd7bd40913ee2c8ab7cddb285765434871a87e91dd3e4364bd9cac82075320929ba0d0ba5
|
7
|
+
data.tar.gz: 7c7a10aa7ee0c28e2fc949f99696be8cfe51e2cafb5d9b16538b2db39d7ec769d84634eda6c9543c8af459de8eedf3243319ba233ac9edf51e122d536eded980
|
data/bin/start
CHANGED
data/lib/start_x/config.rb
CHANGED
data/lib/start_x/project.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
module StartX
|
2
2
|
class Project
|
3
3
|
def initialize
|
4
|
-
|
5
|
-
@starters = YAML.load(File.open(path + "/starters.yaml" ))
|
6
|
-
|
4
|
+
@starters = YAML.load(File.open(Dir.home + "/.startx" ))
|
7
5
|
handle_args
|
8
6
|
end
|
9
7
|
|
@@ -22,7 +20,8 @@ module StartX
|
|
22
20
|
|
23
21
|
|
24
22
|
def run(key)
|
25
|
-
%x(git clone #{@starters[key]})
|
23
|
+
%x(git clone #{@starters[key]['url']})
|
24
|
+
system "#{@starters[key]['scripts']}"
|
26
25
|
end
|
27
26
|
end
|
28
27
|
end
|
data/lib/start_x/version.rb
CHANGED
data/lib/start_x.rb
CHANGED
@@ -6,16 +6,17 @@ require 'yaml'
|
|
6
6
|
|
7
7
|
require 'start_x/config'
|
8
8
|
require 'start_x/project'
|
9
|
+
require 'start_x/version'
|
9
10
|
|
10
11
|
|
11
|
-
module
|
12
|
+
module StartX
|
12
13
|
class Runner
|
13
14
|
include Commander::Methods
|
14
15
|
# include whatever modules you need
|
15
16
|
|
16
17
|
def run
|
17
18
|
program :name, 'starters'
|
18
|
-
program :version,
|
19
|
+
program :version, StartX::VERSION
|
19
20
|
program :description, 'Easily kickoff projects from git'
|
20
21
|
default_command :project
|
21
22
|
|
@@ -26,7 +27,7 @@ module Startx
|
|
26
27
|
c.example 'description', 'command example'
|
27
28
|
c.option '--some-switch', 'Some switch that does something'
|
28
29
|
c.action do |args, options|
|
29
|
-
|
30
|
+
StartX::Config.new
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
@@ -36,7 +37,7 @@ module Startx
|
|
36
37
|
c.description = ''
|
37
38
|
c.example 'description', 'command example'
|
38
39
|
c.action do |args, options|
|
39
|
-
|
40
|
+
StartX::Project.new
|
40
41
|
end
|
41
42
|
end
|
42
43
|
|