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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a46d790507da9bae22ff058b3b331394779c4184
4
- data.tar.gz: 53f2fbfe3332fe588fbbb1a51d98ac51ba742114
3
+ metadata.gz: 9cfc8f8741e45378ba18a259b9c7396136011526
4
+ data.tar.gz: 43993f20a3cacf887584585251f076dd6d410b3c
5
5
  SHA512:
6
- metadata.gz: ea7efdbb08074d45e324af4ab2476b9a43eee619d59458730eae86c49d14f6384d8a66fecf4602494c7a2e71b1cd67600c177c13da325dc987b97b00ba0f2f92
7
- data.tar.gz: 0e4ea217d63327d68e94d63ea4107553200b7e4d2997b7ca382d16a8765df88b78f2803df5cd68265fcf35782904dc0cc9a2c4290100b9e9c4f892bbca51c3e4
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
@@ -3,7 +3,8 @@ module Shelldon
3
3
  attr_reader :name
4
4
 
5
5
  def initialize(name, &block)
6
- @name = name
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)
@@ -1,3 +1,3 @@
1
1
  module Shelldon
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
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.9
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: 2016-11-12 00:00:00.000000000 Z
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.4.5.1
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