shelldon 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dsl.rb +4 -0
- data/lib/shell/shell_factory.rb +4 -1
- data/lib/shelldon/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cfc8f8741e45378ba18a259b9c7396136011526
|
4
|
+
data.tar.gz: 43993f20a3cacf887584585251f076dd6d410b3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27312735a48554c8a2937e942c0c5d06761fc94c857739439377e1f2c6d8d6cda46ae38d2a47ef0e3e31c75ab6d84fb5507436b00408f8acf19612996b889264
|
7
|
+
data.tar.gz: d0a10583b1b446fafec836ace18b64375c388ce3bd1acaacb07c925ade46c899e7b189eafecb52f7e3d9024da865ca9c93eedc6714e6e5fe144b13304d458faa
|
data/lib/dsl.rb
CHANGED
@@ -56,6 +56,10 @@ module Shelldon
|
|
56
56
|
Shelldon::ShellFactoryIndex.instance
|
57
57
|
end
|
58
58
|
|
59
|
+
def self.prepare(shell_name = (:default))
|
60
|
+
shell_factory_index[shell_name].make_it_rain
|
61
|
+
end
|
62
|
+
|
59
63
|
def self.run(shell_name = (:default))
|
60
64
|
shell_factory_index[shell_name].run
|
61
65
|
end
|
data/lib/shell/shell_factory.rb
CHANGED
@@ -3,7 +3,8 @@ module Shelldon
|
|
3
3
|
attr_reader :name
|
4
4
|
|
5
5
|
def initialize(name, &block)
|
6
|
-
@
|
6
|
+
@started = false
|
7
|
+
@name = name
|
7
8
|
Shelldon.shell_factory_index << self
|
8
9
|
setup_vars
|
9
10
|
register(Shell.new(name)) unless Shelldon[name]
|
@@ -29,6 +30,7 @@ module Shelldon
|
|
29
30
|
end
|
30
31
|
|
31
32
|
def make_it_rain
|
33
|
+
return true if @started
|
32
34
|
install_modules
|
33
35
|
make_opts
|
34
36
|
make_configs
|
@@ -37,6 +39,7 @@ module Shelldon
|
|
37
39
|
make_commands
|
38
40
|
make_scripts
|
39
41
|
make_command_missing
|
42
|
+
@started = true
|
40
43
|
end
|
41
44
|
|
42
45
|
def register(shell)
|
data/lib/shelldon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelldon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Boynton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: getopt
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.5.2
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: An expressive DSL for building interactive command-line apps
|