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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3f03a66ffed6821675c24b0e2c24f4f0b113e3a
4
- data.tar.gz: 76b678656a8ef2f5f64a1b9250e8fa21f12503f6
3
+ metadata.gz: 1cc95b154f92cb5089086eeab5dce7008b950522
4
+ data.tar.gz: 9e17e7cfefea7942a87b16eaad17a2aaac42880c
5
5
  SHA512:
6
- metadata.gz: b9bbdb04e999cb64582120392519bced6b6da98ebac2254b5ff3f95739696e4c6173d39eadeb8cb30c432de43b95e55e3200698d4ef991583ab0db00e3bbd6b4
7
- data.tar.gz: 290dae47f176bd13780a85ae7b9fe309b424d31914882e65439b85029ead3e03b222a7b62413e24702948307e73c9a96a047e6f108faebe74a3db0e08cfc818f
6
+ metadata.gz: 4b8c208efadab1bcfe6528b15bf65eb8c07a597713822e5d3edfd40cd7bd40913ee2c8ab7cddb285765434871a87e91dd3e4364bd9cac82075320929ba0d0ba5
7
+ data.tar.gz: 7c7a10aa7ee0c28e2fc949f99696be8cfe51e2cafb5d9b16538b2db39d7ec769d84634eda6c9543c8af459de8eedf3243319ba233ac9edf51e122d536eded980
data/bin/start CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'starters'
3
+ require 'start_x'
4
4
 
5
- Starters::Runner.new.run
5
+ StartX::Runner.new.run
@@ -1,9 +1,7 @@
1
1
  module StartX
2
2
  class Config
3
3
  def initialize
4
- path = File.join(File.dirname(File.expand_path(__FILE__)), 'config')
5
- file_path = path + "/starters.yaml"
6
- system "vim #{file_path}"
4
+ system "vim #{Dir.home + "/.startx"}"
7
5
  puts "Saved your config"
8
6
  end
9
7
  end
@@ -1,9 +1,7 @@
1
1
  module StartX
2
2
  class Project
3
3
  def initialize
4
- path = File.join(File.dirname(File.expand_path(__FILE__)), 'config')
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
@@ -1,3 +1,3 @@
1
1
  module StartX
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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 Startx
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, '0.0.1'
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
- Starters::Config.new
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
- Starters::Project.new
40
+ StartX::Project.new
40
41
  end
41
42
  end
42
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: start-x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Golden