mclaunch 0.0.1 → 0.0.4

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.
data/lib/mclaunch.rb CHANGED
@@ -258,6 +258,7 @@ module Mclaunch
258
258
  @runtime = Runtime.new(@options)
259
259
  @tools = Tools.new(@runtime, @options)
260
260
  @commands = Commands.new(@runtime, @options, @tools)
261
+ @runtime.tools(@tools)
261
262
  @tools.commands(@commands)
262
263
  @craftbukkit_version_regex = /^[1-9]\.[0-9]\.[0-9]-R[0-9]\.[0-9]$/
263
264
 
@@ -15,6 +15,7 @@ module Mclaunch
15
15
  @multiplexer = @options[:server_terminal_multiplexer]
16
16
  @multiplexer_session_name = @options[:server_terminal_multiplexer_name]
17
17
  @multiplexer_session = @options[:server_terminal_multiplexer_session]
18
+ @tools = nil
18
19
  end #end initialize
19
20
 
20
21
  #setter for @options
@@ -42,6 +43,7 @@ module Mclaunch
42
43
 
43
44
  #start server
44
45
  def start
46
+ @tools.worlds_create_symlinks
45
47
  send_command(@start_cmd)
46
48
  end #end start
47
49
 
@@ -139,5 +141,10 @@ module Mclaunch
139
141
  props
140
142
  end #end get_server_properties
141
143
 
144
+ def tools(tools=nil)
145
+ @tools = tools
146
+ @toos unless @tools
147
+ end #end tools(tools=nil)
148
+
142
149
  end #end Runtime
143
150
  end
@@ -1,3 +1,3 @@
1
1
  module Mclaunch
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mclaunch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: