server_launcher 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="fda091fd-b6d0-49a2-b237-a27eaae35c88" name="Default" comment="" />
4
+ <list default="true" id="fda091fd-b6d0-49a2-b237-a27eaae35c88" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/server_launcher/server.rb" afterPath="$PROJECT_DIR$/lib/server_launcher/server.rb" />
8
+ </list>
5
9
  <ignored path="server_launcher.iws" />
6
10
  <ignored path=".idea/workspace.xml" />
7
11
  <option name="TRACKING_ENABLED" value="true" />
@@ -40,10 +44,55 @@
40
44
  </provider>
41
45
  </entry>
42
46
  </file>
43
- <file leaf-file-name="server.rb" pinned="false" current="true" current-in-tab="true">
47
+ <file leaf-file-name="server.rb" pinned="false" current="false" current-in-tab="false">
44
48
  <entry file="file://$PROJECT_DIR$/lib/server_launcher/server.rb">
45
49
  <provider selected="true" editor-type-id="text-editor">
46
- <state line="2" column="0" selection-start="39" selection-end="39" vertical-scroll-proportion="0.051863857">
50
+ <state line="0" column="22" selection-start="22" selection-end="22" vertical-scroll-proportion="0.0">
51
+ <folding />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="jboss_server.rb" pinned="false" current="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/jboss_server.rb">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state line="36" column="17" selection-start="878" selection-end="878" vertical-scroll-proportion="0.0">
60
+ <folding />
61
+ </state>
62
+ </provider>
63
+ </entry>
64
+ </file>
65
+ <file leaf-file-name="tomcat_server.rb" pinned="false" current="false" current-in-tab="false">
66
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/tomcat_server.rb">
67
+ <provider selected="true" editor-type-id="text-editor">
68
+ <state line="0" column="24" selection-start="9" selection-end="24" vertical-scroll-proportion="0.0">
69
+ <folding />
70
+ </state>
71
+ </provider>
72
+ </entry>
73
+ </file>
74
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
75
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/version.rb">
76
+ <provider selected="true" editor-type-id="text-editor">
77
+ <state line="0" column="21" selection-start="21" selection-end="21" vertical-scroll-proportion="0.0">
78
+ <folding />
79
+ </state>
80
+ </provider>
81
+ </entry>
82
+ </file>
83
+ <file leaf-file-name="winstone_server.rb" pinned="false" current="false" current-in-tab="false">
84
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/winstone_server.rb">
85
+ <provider selected="true" editor-type-id="text-editor">
86
+ <state line="15" column="0" selection-start="369" selection-end="369" vertical-scroll-proportion="0.0">
87
+ <folding />
88
+ </state>
89
+ </provider>
90
+ </entry>
91
+ </file>
92
+ <file leaf-file-name="Gemfile" pinned="false" current="true" current-in-tab="true">
93
+ <entry file="file://$PROJECT_DIR$/Gemfile">
94
+ <provider selected="true" editor-type-id="text-editor">
95
+ <state line="7" column="0" selection-start="81" selection-end="149" vertical-scroll-proportion="0.12280702">
47
96
  <folding />
48
97
  </state>
49
98
  </provider>
@@ -52,7 +101,7 @@
52
101
  <file leaf-file-name="server_spec.rb" pinned="false" current="false" current-in-tab="false">
53
102
  <entry file="file://$PROJECT_DIR$/spec/server_spec.rb">
54
103
  <provider selected="true" editor-type-id="text-editor">
55
- <state line="1" column="0" selection-start="66" selection-end="66" vertical-scroll-proportion="0.0">
104
+ <state line="25" column="32" selection-start="527" selection-end="527" vertical-scroll-proportion="0.0">
56
105
  <folding />
57
106
  </state>
58
107
  </provider>
@@ -81,7 +130,6 @@
81
130
  <option name="changedFiles">
82
131
  <list>
83
132
  <option value="$PROJECT_DIR$/lib/server_launcher.rb" />
84
- <option value="$PROJECT_DIR$/Gemfile" />
85
133
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
86
134
  <option value="$PROJECT_DIR$/lib/server_launcher/jboss_server.rb" />
87
135
  <option value="$PROJECT_DIR$/spec/jboss_server_spec.rb" />
@@ -94,6 +142,7 @@
94
142
  <option value="$PROJECT_DIR$/Rakefile" />
95
143
  <option value="$PROJECT_DIR$/server_launcher.gemspec.erb" />
96
144
  <option value="$PROJECT_DIR$/spec/server_spec.rb" />
145
+ <option value="$PROJECT_DIR$/Gemfile" />
97
146
  <option value="$PROJECT_DIR$/lib/server_launcher/server.rb" />
98
147
  </list>
99
148
  </option>
@@ -130,6 +179,7 @@
130
179
  <sortByType />
131
180
  </navigator>
132
181
  <panes>
182
+ <pane id="Scope" />
133
183
  <pane id="ProjectPane">
134
184
  <subPane>
135
185
  <PATH>
@@ -232,7 +282,6 @@
232
282
  </PATH>
233
283
  </subPane>
234
284
  </pane>
235
- <pane id="Scope" />
236
285
  </panes>
237
286
  </component>
238
287
  <component name="PropertiesComponent">
@@ -243,8 +292,8 @@
243
292
  <recent name="$PROJECT_DIR$/lib/server_launcher" />
244
293
  </key>
245
294
  </component>
246
- <component name="RunManager" selected="RSpec.server_spec">
247
- <configuration default="false" name="TomcatServer" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
295
+ <component name="RunManager" selected="RSpec.MyServer should execute command with nil parameter">
296
+ <configuration default="false" name="Server should build fix command" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
248
297
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
249
298
  <module name="server_launcher" />
250
299
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -262,10 +311,10 @@
262
311
  </COVERAGE_PATTERN>
263
312
  </EXTENSION>
264
313
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
265
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/tomcat_server_spec.rb" />
314
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/server_spec.rb" />
266
315
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
267
316
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
268
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="TomcatServer" />
317
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Server should build fix command" />
269
318
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
270
319
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
271
320
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -276,7 +325,7 @@
276
325
  <ConfigurationWrapper RunnerId="RubyRunner" />
277
326
  <method />
278
327
  </configuration>
279
- <configuration default="false" name="WinstoneServer" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
328
+ <configuration default="false" name="MyServer" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
280
329
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
281
330
  <module name="server_launcher" />
282
331
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -294,10 +343,10 @@
294
343
  </COVERAGE_PATTERN>
295
344
  </EXTENSION>
296
345
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
297
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/winstone_server_spec.rb" />
346
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/server_spec.rb" />
298
347
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
299
348
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
300
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="WinstoneServer" />
349
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyServer" />
301
350
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
302
351
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
303
352
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -308,7 +357,7 @@
308
357
  <ConfigurationWrapper RunnerId="RubyRunner" />
309
358
  <method />
310
359
  </configuration>
311
- <configuration default="false" name="Server should build fix command" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
360
+ <configuration default="false" name="server_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
312
361
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
313
362
  <module name="server_launcher" />
314
363
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -329,7 +378,7 @@
329
378
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/server_spec.rb" />
330
379
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
331
380
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
332
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Server should build fix command" />
381
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
333
382
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
334
383
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
335
384
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -340,7 +389,7 @@
340
389
  <ConfigurationWrapper RunnerId="RubyRunner" />
341
390
  <method />
342
391
  </configuration>
343
- <configuration default="false" name="MyServer" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
392
+ <configuration default="false" name="MyServer should execute command with parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
344
393
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
345
394
  <module name="server_launcher" />
346
395
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -361,18 +410,20 @@
361
410
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/server_spec.rb" />
362
411
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
363
412
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
364
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyServer" />
413
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyServer should execute command with parameter" />
365
414
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
366
415
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
367
416
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
368
417
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
369
418
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
370
419
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
420
+ <RunnerSettings RunnerId="RubyDebugRunner" />
371
421
  <RunnerSettings RunnerId="RubyRunner" />
422
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
372
423
  <ConfigurationWrapper RunnerId="RubyRunner" />
373
424
  <method />
374
425
  </configuration>
375
- <configuration default="false" name="server_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
426
+ <configuration default="false" name="MyServer should execute command with nil parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
376
427
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
377
428
  <module name="server_launcher" />
378
429
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -393,15 +444,15 @@
393
444
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/server_spec.rb" />
394
445
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
395
446
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
396
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
447
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyServer should execute command with nil parameter" />
397
448
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
398
449
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
399
450
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
400
451
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
401
452
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
402
453
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
403
- <RunnerSettings RunnerId="RubyRunner" />
404
- <ConfigurationWrapper RunnerId="RubyRunner" />
454
+ <RunnerSettings RunnerId="RubyDebugRunner" />
455
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
405
456
  <method />
406
457
  </configuration>
407
458
  <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
@@ -475,19 +526,19 @@
475
526
  <method />
476
527
  </configuration>
477
528
  <list size="5">
478
- <item index="0" class="java.lang.String" itemvalue="RSpec.TomcatServer" />
479
- <item index="1" class="java.lang.String" itemvalue="RSpec.WinstoneServer" />
480
- <item index="2" class="java.lang.String" itemvalue="RSpec.Server should build fix command" />
481
- <item index="3" class="java.lang.String" itemvalue="RSpec.MyServer" />
482
- <item index="4" class="java.lang.String" itemvalue="RSpec.server_spec" />
529
+ <item index="0" class="java.lang.String" itemvalue="RSpec.Server should build fix command" />
530
+ <item index="1" class="java.lang.String" itemvalue="RSpec.MyServer" />
531
+ <item index="2" class="java.lang.String" itemvalue="RSpec.server_spec" />
532
+ <item index="3" class="java.lang.String" itemvalue="RSpec.MyServer should execute command with parameter" />
533
+ <item index="4" class="java.lang.String" itemvalue="RSpec.MyServer should execute command with nil parameter" />
483
534
  </list>
484
535
  <recent_temporary>
485
536
  <list size="5">
486
- <item index="0" class="java.lang.String" itemvalue="RSpec.server_spec" />
487
- <item index="1" class="java.lang.String" itemvalue="RSpec.MyServer" />
488
- <item index="2" class="java.lang.String" itemvalue="RSpec.Server should build fix command" />
489
- <item index="3" class="java.lang.String" itemvalue="RSpec.TomcatServer" />
490
- <item index="4" class="java.lang.String" itemvalue="RSpec.WinstoneServer" />
537
+ <item index="0" class="java.lang.String" itemvalue="RSpec.MyServer should execute command with nil parameter" />
538
+ <item index="1" class="java.lang.String" itemvalue="RSpec.MyServer should execute command with parameter" />
539
+ <item index="2" class="java.lang.String" itemvalue="RSpec.server_spec" />
540
+ <item index="3" class="java.lang.String" itemvalue="RSpec.MyServer" />
541
+ <item index="4" class="java.lang.String" itemvalue="RSpec.Server should build fix command" />
491
542
  </list>
492
543
  </recent_temporary>
493
544
  </component>
@@ -496,22 +547,22 @@
496
547
  <frame x="240" y="142" width="1588" height="1058" extended-state="0" />
497
548
  <editor active="false" />
498
549
  <layout>
499
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
500
550
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
501
551
  <window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
502
552
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
503
553
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
504
554
  <window_info id="jenkinsBrowser" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
505
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.67013526" order="0" side_tool="false" content_ui="combo" />
555
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.60041624" order="0" side_tool="false" content_ui="combo" />
506
556
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39958376" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
507
557
  <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
508
558
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
509
- <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
559
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
510
560
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
511
561
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
512
562
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
513
563
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
514
564
  <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
565
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
515
566
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
516
567
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
517
568
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
@@ -575,7 +626,7 @@
575
626
  <breakpoints>
576
627
  <line-breakpoint enabled="true" type="ruby-line">
577
628
  <url>file://$PROJECT_DIR$/lib/server_launcher/server.rb</url>
578
- <line>7</line>
629
+ <line>10</line>
579
630
  </line-breakpoint>
580
631
  </breakpoints>
581
632
  </breakpoint-manager>
@@ -591,96 +642,86 @@
591
642
  <state line="82" column="35" selection-start="3061" selection-end="3061" vertical-scroll-proportion="0.0" />
592
643
  </provider>
593
644
  </entry>
594
- <entry file="file://$PROJECT_DIR$/lib/server_launcher/tomcat_server.rb">
645
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@server_launcher/gems/meta_methods-1.0.2/lib/meta_methods/meta_methods.rb">
595
646
  <provider selected="true" editor-type-id="text-editor">
596
- <state line="0" column="24" selection-start="9" selection-end="24" vertical-scroll-proportion="0.0">
597
- <folding />
598
- </state>
647
+ <state line="18" column="17" selection-start="515" selection-end="515" vertical-scroll-proportion="0.4667747" />
599
648
  </provider>
600
649
  </entry>
601
- <entry file="file://$PROJECT_DIR$/lib/server_launcher/jboss_server.rb">
650
+ <entry file="file://$PROJECT_DIR$/server_launcher.gemspec.erb">
602
651
  <provider selected="true" editor-type-id="text-editor">
603
- <state line="36" column="17" selection-start="821" selection-end="821" vertical-scroll-proportion="0.87034035">
604
- <folding />
605
- </state>
652
+ <state line="7" column="72" selection-start="330" selection-end="330" vertical-scroll-proportion="0.1891892" />
606
653
  </provider>
607
654
  </entry>
608
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@server_launcher/gems/meta_methods-1.0.2/lib/meta_methods/meta_methods.rb">
655
+ <entry file="file://$PROJECT_DIR$/Rakefile">
609
656
  <provider selected="true" editor-type-id="text-editor">
610
- <state line="18" column="17" selection-start="515" selection-end="515" vertical-scroll-proportion="0.4667747" />
657
+ <state line="7" column="55" selection-start="198" selection-end="198" vertical-scroll-proportion="0.1815235" />
611
658
  </provider>
612
659
  </entry>
613
- <entry file="file://$PROJECT_DIR$/lib/server_launcher/winstone_server.rb">
660
+ <entry file="file://$PROJECT_DIR$/spec/winstone_server_spec.rb">
614
661
  <provider selected="true" editor-type-id="text-editor">
615
- <state line="15" column="0" selection-start="369" selection-end="369" vertical-scroll-proportion="0.0">
662
+ <state line="11" column="30" selection-start="322" selection-end="322" vertical-scroll-proportion="0.0">
616
663
  <folding />
617
664
  </state>
618
665
  </provider>
619
666
  </entry>
620
- <entry file="file://$PROJECT_DIR$/server_launcher.gemspec.erb">
667
+ <entry file="file://$PROJECT_DIR$/spec/jboss_server_spec.rb">
621
668
  <provider selected="true" editor-type-id="text-editor">
622
- <state line="7" column="72" selection-start="330" selection-end="330" vertical-scroll-proportion="0.1891892">
669
+ <state line="3" column="21" selection-start="106" selection-end="106" vertical-scroll-proportion="0.0">
623
670
  <folding />
624
671
  </state>
625
672
  </provider>
626
673
  </entry>
627
- <entry file="file://$PROJECT_DIR$/Rakefile">
674
+ <entry file="file://$PROJECT_DIR$/spec/tomcat_server_spec.rb">
628
675
  <provider selected="true" editor-type-id="text-editor">
629
- <state line="7" column="55" selection-start="198" selection-end="198" vertical-scroll-proportion="0.1815235">
676
+ <state line="11" column="20" selection-start="0" selection-end="1058" vertical-scroll-proportion="0.0">
630
677
  <folding />
631
678
  </state>
632
679
  </provider>
633
680
  </entry>
634
- <entry file="file://$PROJECT_DIR$/lib/server_launcher/version.rb">
681
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open3.rb">
635
682
  <provider selected="true" editor-type-id="text-editor">
636
- <state line="0" column="21" selection-start="21" selection-end="21" vertical-scroll-proportion="0.0">
637
- <folding />
638
- </state>
683
+ <state line="29" column="7" selection-start="1114" selection-end="1114" vertical-scroll-proportion="0.33225283" />
639
684
  </provider>
640
685
  </entry>
641
- <entry file="file://$PROJECT_DIR$/spec/winstone_server_spec.rb">
686
+ <entry file="file://$PROJECT_DIR$/spec/server_spec.rb">
642
687
  <provider selected="true" editor-type-id="text-editor">
643
- <state line="11" column="30" selection-start="322" selection-end="322" vertical-scroll-proportion="0.0">
688
+ <state line="25" column="32" selection-start="527" selection-end="527" vertical-scroll-proportion="0.0">
644
689
  <folding />
645
690
  </state>
646
691
  </provider>
647
692
  </entry>
648
- <entry file="file://$PROJECT_DIR$/spec/jboss_server_spec.rb">
693
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/jboss_server.rb">
649
694
  <provider selected="true" editor-type-id="text-editor">
650
- <state line="3" column="21" selection-start="106" selection-end="106" vertical-scroll-proportion="0.0">
695
+ <state line="36" column="17" selection-start="878" selection-end="878" vertical-scroll-proportion="0.0">
651
696
  <folding />
652
697
  </state>
653
698
  </provider>
654
699
  </entry>
655
- <entry file="file://$PROJECT_DIR$/spec/tomcat_server_spec.rb">
700
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/version.rb">
656
701
  <provider selected="true" editor-type-id="text-editor">
657
- <state line="11" column="20" selection-start="0" selection-end="1058" vertical-scroll-proportion="0.0">
658
- <folding />
659
- </state>
702
+ <state line="0" column="21" selection-start="21" selection-end="21" vertical-scroll-proportion="0.0" />
660
703
  </provider>
661
704
  </entry>
662
- <entry file="file://$USER_HOME$/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open3.rb">
705
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/winstone_server.rb">
663
706
  <provider selected="true" editor-type-id="text-editor">
664
- <state line="29" column="7" selection-start="1114" selection-end="1114" vertical-scroll-proportion="0.33225283">
665
- <folding />
666
- </state>
707
+ <state line="15" column="0" selection-start="369" selection-end="369" vertical-scroll-proportion="0.0" />
667
708
  </provider>
668
709
  </entry>
669
- <entry file="file://$PROJECT_DIR$/Gemfile">
710
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/tomcat_server.rb">
670
711
  <provider selected="true" editor-type-id="text-editor">
671
- <state line="10" column="127" selection-start="131" selection-end="131" vertical-scroll-proportion="0.25931928" />
712
+ <state line="0" column="24" selection-start="9" selection-end="24" vertical-scroll-proportion="0.0" />
672
713
  </provider>
673
714
  </entry>
674
- <entry file="file://$PROJECT_DIR$/spec/server_spec.rb">
715
+ <entry file="file://$PROJECT_DIR$/lib/server_launcher/server.rb">
675
716
  <provider selected="true" editor-type-id="text-editor">
676
- <state line="1" column="0" selection-start="66" selection-end="66" vertical-scroll-proportion="0.0">
717
+ <state line="0" column="22" selection-start="22" selection-end="22" vertical-scroll-proportion="0.0">
677
718
  <folding />
678
719
  </state>
679
720
  </provider>
680
721
  </entry>
681
- <entry file="file://$PROJECT_DIR$/lib/server_launcher/server.rb">
722
+ <entry file="file://$PROJECT_DIR$/Gemfile">
682
723
  <provider selected="true" editor-type-id="text-editor">
683
- <state line="2" column="0" selection-start="39" selection-end="39" vertical-scroll-proportion="0.051863857">
724
+ <state line="7" column="0" selection-start="81" selection-end="149" vertical-scroll-proportion="0.12280702">
684
725
  <folding />
685
726
  </state>
686
727
  </provider>
data/CHANGES ADDED
@@ -0,0 +1,9 @@
1
+ = Server launcher Changelog
2
+
3
+ == Version 1.0.0
4
+
5
+ * Initial release.
6
+
7
+ == Version 1.0.3
8
+
9
+ * Bug fix in execute method.
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ source :rubygems
2
2
 
3
3
  group :default do
4
4
  gem "meta_methods"
5
+ gem "file_utils"
5
6
  end
6
7
 
7
8
  group :development do
data/README.md CHANGED
@@ -1,4 +1,33 @@
1
- server_launcher
2
- ===============
1
+ # ServerLauncher - Convenient classes to manage servers from rake
3
2
 
4
- Convenient classes to manage servers from rake
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ gem 'server_launcher'
8
+
9
+ And then execute:
10
+
11
+ $ bundle
12
+
13
+ Or install it yourself as:
14
+
15
+ $ gem install server_launcher
16
+
17
+ ## Usage
18
+
19
+ server = TomcatServer.new(:app_server_home => app_server_home, :deploy_dir => deploy_dir,
20
+ :project_name => project_name, :warfile => warfile, :logfile => logfile)
21
+
22
+ server.execute :start
23
+ server.execute :stop
24
+ server.execute :deploy
25
+
26
+
27
+ ## Contributing
28
+
29
+ 1. Fork it
30
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
31
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
32
+ 4. Push to the branch (`git push origin my-new-feature`)
33
+ 5. Create new Pull Request
@@ -1,5 +1,4 @@
1
1
  require 'meta_methods'
2
- require 'open3'
3
2
 
4
3
  class Server
5
4
  include MetaMethods
@@ -16,7 +15,7 @@ class Server
16
15
  if args.empty?
17
16
  result = method.bind(self).call()
18
17
  else
19
- result = method.bind(self).call(args)
18
+ result = method.bind(self).call(args.join(" "))
20
19
  end
21
20
 
22
21
  if result.kind_of? String
@@ -28,26 +27,12 @@ class Server
28
27
  commands.each do |command|
29
28
  puts "Executing '#{command}'..."
30
29
 
31
- execute_command(command)
32
- end
33
- end
34
-
35
- private
30
+ output, error, status = *execute_command(command)
36
31
 
37
- def execute_command(command)
38
- output = nil
39
- error = nil
40
- status = nil
41
-
42
- Open3.popen3(command) do |_, stdout, stderr|
43
- output = stdout.readlines
44
- error = stderr.readlines
45
- status = $?
32
+ puts "Output:\n #{output}" if output && output.size > 0
33
+ puts "Error: #{error}" if error && error.size > 0
34
+ puts "Status: #{status}" if status && status.to_s.to_i > 0
46
35
  end
47
-
48
- puts "Output:\n #{output}" if output && output.size > 0
49
- puts "Error: #{error}" if error && error.size > 0
50
- puts "Status: #{status}" if status && status.to_s.to_i > 0
51
36
  end
52
37
 
53
38
  end
@@ -1,3 +1,3 @@
1
1
  module ServerLauncher
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.version = ServerLauncher::VERSION
17
17
 
18
18
  spec.add_runtime_dependency "meta_methods", [">= 0"]
19
+ spec.add_runtime_dependency "file_utils", [">= 0"]
19
20
  spec.add_development_dependency "gemspec_deps_gen", [">= 0"]
20
21
  spec.add_development_dependency "gemcutter", [">= 0"]
21
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: meta_methods
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: file_utils
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: gemspec_deps_gen
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -77,6 +93,7 @@ files:
77
93
  - .idea/vcs.xml
78
94
  - .idea/workspace.xml
79
95
  - .rvmrc
96
+ - CHANGES
80
97
  - Gemfile
81
98
  - LICENSE
82
99
  - README.md