thorium 0.3.7 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5db9df4d8edcf8c12684ed088c24929bcd5dc537
4
- data.tar.gz: 48def82486f09746dc14a2bfda7aaff01afc7e45
3
+ metadata.gz: 16fe44b66185584d67b94f3bdb347c982313c19a
4
+ data.tar.gz: 47b8a0e66776e16736c26ef9076b5b6d016016a7
5
5
  SHA512:
6
- metadata.gz: deff5ddad3edc2e0b240e295aef17bf43153f2fadb81742db8318a02b00414018830757b1ca229042b9a96d4018fdad48d0ef68a8a6e58652541761d183728f2
7
- data.tar.gz: a0df9c51bfb792a54daf2742f9ad301f1e30492cdd0510f327f34009459eb2198d324d8444f3fef49476eef9f6d39162c1ddab82f113048cf84e36fa868c5c24
6
+ metadata.gz: 55a49994ae5936413da602792bbb3dd0193bad18aefeccb0f351e74cbcb88710722b5a7b1657baa88790b3daa4ce13663d909bf5a059edb96cafdba373aec5b8
7
+ data.tar.gz: 813c0d90393e839bd9f679a8148724a834a2f01b2b12bfcbfb68c5dc6598f109736103c5bfef55acdb308c0d01f1b705f2b31bda604220d468ba46208420811d
@@ -3,6 +3,7 @@ require 'thor/group'
3
3
 
4
4
  require_relative 'core/bootstrap.rb'
5
5
  require_relative 'version'
6
+ require_relative 'tasks/configurator'
6
7
  require_relative 'tasks/common'
7
8
  require_relative 'tasks/apache'
8
9
  require_relative 'tasks/git'
@@ -12,11 +13,13 @@ module ThoriumCLI
12
13
  # Includes routines that do not require packaging of subcomands
13
14
  class Thorium < Thor
14
15
  package_name 'Thorium'
16
+
15
17
  SKIP = ''
16
18
  ALIAS = 'th'
17
19
  OS = ENV['_system_type']
18
20
 
19
21
  include Thor::Actions
22
+ include ConfigCLI
20
23
  include ApacheCLI
21
24
  include GitCLI
22
25
 
@@ -59,6 +62,10 @@ module ThoriumCLI
59
62
  desc 'git [SUBCOMMAND] [ARGS]', 'Git wrapper'
60
63
  subcommand 'git', Git
61
64
 
65
+ # Runcom subcommand
66
+ desc 'runcom [SUBCOMMAND] [ARGS]', 'Runcom files'
67
+ subcommand 'runcom', Runcom
68
+
62
69
  no_commands do
63
70
 
64
71
  private
@@ -86,6 +93,7 @@ module ThoriumCLI
86
93
  say 'pbcopy is not installed, cannot copy to clipboard', :red
87
94
  end
88
95
  end
96
+
89
97
  end
90
98
  end
91
99
  end
@@ -0,0 +1,38 @@
1
+ module ConfigCLI
2
+ # RC files setup
3
+ class Runcom < Thor
4
+ package_name 'Thorium | Runcom'
5
+
6
+ TH_URL = "https://raw.githubusercontent.com/dzotokan/thorium/master"
7
+ RC_PATH = "lib/thorium/templates/rc"
8
+ RC_FULL = "#{TH_URL}/#{RC_PATH}"
9
+
10
+ include Thor::Actions
11
+
12
+ desc 'all', 'Run all rc files'
13
+ def all
14
+ [:vim, :sqlite].each do |m|
15
+ say "--> Running rc for: #{m}", :yellow
16
+ send m
17
+ end
18
+ end
19
+
20
+ desc 'vim', 'Vim runcom file'
21
+ def vim
22
+ say_rc_fetch
23
+ get "#{RC_FULL}/vimrc.th-tpl", "~/.vimrc"
24
+ end
25
+
26
+ desc 'sqlite', 'SQLite runcom file'
27
+ def sqlite
28
+ say_rc_fetch
29
+ get "#{RC_FULL}/sqliterc.th-tpl", "~/.sqliterc"
30
+ end
31
+
32
+ no_commands do
33
+ def say_rc_fetch
34
+ say "--> Fetching data from remote...", :blue
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,4 +1,4 @@
1
1
  # Top level comment for thorium
2
2
  module Thorium
3
- VERSION = '0.3.7'
3
+ VERSION = '0.4.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thorium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Stankevich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-07 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -65,6 +65,7 @@ files:
65
65
  - lib/thorium/core/bootstrap.rb
66
66
  - lib/thorium/tasks/apache.rb
67
67
  - lib/thorium/tasks/common.rb
68
+ - lib/thorium/tasks/configurator.rb
68
69
  - lib/thorium/tasks/git.rb
69
70
  - lib/thorium/version.rb
70
71
  homepage: http://rubygems.org/gems/thorium