script_executor 1.4.1 → 1.4.2
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 +13 -5
- data/.idea/script_executor.iml +18 -24
- data/.idea/workspace.xml +142 -120
- data/CHANGES +4 -0
- data/lib/script_executor/local_command.rb +13 -0
- data/lib/script_executor/remote_command.rb +17 -0
- data/lib/script_executor/version.rb +1 -1
- data/spec/executable_spec.rb +24 -12
- metadata +26 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
NWNjM2FlM2EzZDQzMTc3ZmRhYTk5ODA4MDAzMGUyMWIzMGMwZWFlOQ==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
MDA5MDZhNmZiYzYwNDBiNWRhYWRlYmY4ZDA5NzBhNzQ1YThlNGRmYg==
|
|
5
7
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
YjRjODI3NzU1NDMxZGU4M2M3N2I0ZjBiZDFlMDU3YjBhNTUzY2ZlMjY3ZjY5
|
|
10
|
+
MmU1YmQ5YWQ5OTFkMjI1NGYyMjc3YWNlMzE3ZjU5MjRjNDBmMjRlYTBhMTY1
|
|
11
|
+
YTA5NGY4MGU0MjE3YjJmZTgwYTlkMjcxODI5NDNjN2U2MjBlNGQ=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
Yjg0Y2Q1ZDdiMzllY2NhY2I4NzA2MWU2NDNhYWRhZDFlMGM4YmEwNzllYjNl
|
|
14
|
+
MmM0YWMxYzQxM2JlNTJlMGY0YmY3NzU5NThjOTkxYThhNjgxN2Y2ZTFjODhl
|
|
15
|
+
ZmNlYjBiMWFlZWUwODI4NmMxYTk1ZGFhODMxZGE2MTlkOGRlYmM=
|
data/.idea/script_executor.iml
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</facet>
|
|
11
11
|
</component>
|
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
|
13
|
-
<configuration default="false" name="
|
|
13
|
+
<configuration default="false" name="executable_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
14
14
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
15
15
|
<module name="script_executor" />
|
|
16
16
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</EXTENSION>
|
|
31
31
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
32
32
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
33
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
33
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
34
34
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
35
35
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
36
36
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
@@ -42,13 +42,11 @@
|
|
|
42
42
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
43
43
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
44
44
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
45
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
46
45
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
47
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
48
46
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
49
47
|
<method />
|
|
50
48
|
</configuration>
|
|
51
|
-
<configuration default="false" name="
|
|
49
|
+
<configuration default="false" name="MyExecutable remote execution should execute commands from :script parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
52
50
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
53
51
|
<module name="script_executor" />
|
|
54
52
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -59,7 +57,7 @@
|
|
|
59
57
|
<envs>
|
|
60
58
|
<env name="JRUBY_OPTS" value="-X+O" />
|
|
61
59
|
</envs>
|
|
62
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
60
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
63
61
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
64
62
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
65
63
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -71,7 +69,7 @@
|
|
|
71
69
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
72
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
73
71
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
74
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
72
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable remote execution should execute commands from :script parameter" />
|
|
75
73
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
76
74
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
77
75
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -84,7 +82,7 @@
|
|
|
84
82
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
85
83
|
<method />
|
|
86
84
|
</configuration>
|
|
87
|
-
<configuration default="false" name="MyExecutable
|
|
85
|
+
<configuration default="false" name="MyExecutable local execution should execute commands locally from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
88
86
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
89
87
|
<module name="script_executor" />
|
|
90
88
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -107,7 +105,7 @@
|
|
|
107
105
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
108
106
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
109
107
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
110
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable
|
|
108
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable local execution should execute commands locally from :script parameter" />
|
|
111
109
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
112
110
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
113
111
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -120,7 +118,7 @@
|
|
|
120
118
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
121
119
|
<method />
|
|
122
120
|
</configuration>
|
|
123
|
-
<configuration default="false" name="
|
|
121
|
+
<configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
124
122
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
125
123
|
<module name="script_executor" />
|
|
126
124
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -131,7 +129,7 @@
|
|
|
131
129
|
<envs>
|
|
132
130
|
<env name="JRUBY_OPTS" value="-X+O" />
|
|
133
131
|
</envs>
|
|
134
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
132
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
135
133
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
136
134
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
137
135
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -140,10 +138,10 @@
|
|
|
140
138
|
</EXTENSION>
|
|
141
139
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
142
140
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
143
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
141
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
|
144
142
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
145
143
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
146
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
144
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside current file" />
|
|
147
145
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
148
146
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
149
147
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -152,11 +150,11 @@
|
|
|
152
150
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
153
151
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
154
152
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
155
|
-
<RunnerSettings RunnerId="
|
|
156
|
-
<ConfigurationWrapper RunnerId="
|
|
153
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
154
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
157
155
|
<method />
|
|
158
156
|
</configuration>
|
|
159
|
-
<configuration default="false" name="
|
|
157
|
+
<configuration default="false" name="MyExecutable vagrant should execute commands from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
160
158
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
161
159
|
<module name="script_executor" />
|
|
162
160
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -176,10 +174,10 @@
|
|
|
176
174
|
</EXTENSION>
|
|
177
175
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
178
176
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
179
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
177
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
180
178
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
181
179
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
182
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
180
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable vagrant should execute commands from :script parameter" />
|
|
183
181
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
184
182
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
185
183
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -188,8 +186,8 @@
|
|
|
188
186
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
189
187
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
190
188
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
191
|
-
<RunnerSettings RunnerId="
|
|
192
|
-
<ConfigurationWrapper RunnerId="
|
|
189
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
190
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
193
191
|
<method />
|
|
194
192
|
</configuration>
|
|
195
193
|
</component>
|
|
@@ -198,7 +196,6 @@
|
|
|
198
196
|
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p545 [script_executor]" jdkType="RUBY_SDK" />
|
|
199
197
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
200
198
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
202
199
|
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
203
200
|
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
204
201
|
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
@@ -207,13 +204,10 @@
|
|
|
207
204
|
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
208
205
|
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.13.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
209
206
|
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.8.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
210
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v10.0.4, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
211
207
|
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.12.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
212
208
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
213
209
|
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.12.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
214
210
|
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.12.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
215
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19x (v0.11.30.pre12, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
216
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-ide (v0.4.17, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
217
211
|
<orderEntry type="library" scope="PROVIDED" name="text-interpolator (v1.0.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
|
218
212
|
</component>
|
|
219
213
|
</module>
|
data/.idea/workspace.xml
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" readonly="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment=""
|
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
|
6
|
-
</list>
|
|
4
|
+
<list default="true" readonly="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="" />
|
|
7
5
|
<ignored path="script_executor.iws" />
|
|
8
6
|
<ignored path=".idea/workspace.xml" />
|
|
9
7
|
<option name="TRACKING_ENABLED" value="true" />
|
|
@@ -14,11 +12,12 @@
|
|
|
14
12
|
</component>
|
|
15
13
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
16
14
|
<component name="CoverageDataManager">
|
|
17
|
-
<SUITE FILE_PATH="coverage/script_executor@script_locator_spec.coverage" NAME="script_locator_spec Coverage Results" MODIFIED="1402147217968" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
18
15
|
<SUITE FILE_PATH="coverage/script_executor@MyScriptLocator_evaluate_script_body_locates_script_inside_current_file__script_executor.coverage" NAME="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor Coverage Results" MODIFIED="1402110491955" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
16
|
+
<SUITE FILE_PATH="coverage/script_executor@script_locator_spec.coverage" NAME="script_locator_spec Coverage Results" MODIFIED="1402147217968" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
19
17
|
<SUITE FILE_PATH="coverage/script_executor@MyExecutable_remote_execution_should_execute_commands_from__script_parameter.coverage" NAME="MyExecutable remote execution should execute commands from :script parameter Coverage Results" MODIFIED="1385833810234" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
20
|
-
<SUITE FILE_PATH="coverage/script_executor@executable_spec.coverage" NAME="executable_spec Coverage Results" MODIFIED="
|
|
18
|
+
<SUITE FILE_PATH="coverage/script_executor@executable_spec.coverage" NAME="executable_spec Coverage Results" MODIFIED="1402343492056" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
21
19
|
<SUITE FILE_PATH="coverage/script_executor@MyExecutable_local_execution_should_execute_commands_locally_from__script_parameter__script_executor.coverage" NAME="MyExecutable local execution should execute commands locally from :script parameter: script_executor Coverage Results" MODIFIED="1385833654466" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
20
|
+
<SUITE FILE_PATH="coverage/script_executor@MyExecutable_vagrant_should_execute_commands_from__script_parameter__script_executor.coverage" NAME="MyExecutable vagrant should execute commands from :script parameter: script_executor Coverage Results" MODIFIED="1402343358557" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
|
22
21
|
</component>
|
|
23
22
|
<component name="CreatePatchCommitExecutor">
|
|
24
23
|
<option name="PATCH_PATH" value="" />
|
|
@@ -35,58 +34,68 @@
|
|
|
35
34
|
<file leaf-file-name="script_locator_spec.rb" pinned="false" current="false" current-in-tab="false">
|
|
36
35
|
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
|
37
36
|
<provider selected="true" editor-type-id="text-editor">
|
|
38
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
37
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="596" max-vertical-offset="1071">
|
|
39
38
|
<caret line="41" column="0" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
|
|
40
39
|
<folding />
|
|
41
40
|
</state>
|
|
42
41
|
</provider>
|
|
43
42
|
</entry>
|
|
44
43
|
</file>
|
|
45
|
-
<file leaf-file-name="
|
|
46
|
-
<entry file="file://$PROJECT_DIR$/
|
|
44
|
+
<file leaf-file-name="executable_spec.rb" pinned="false" current="false" current-in-tab="false">
|
|
45
|
+
<entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
|
|
47
46
|
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
49
|
-
<caret line="
|
|
47
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2193">
|
|
48
|
+
<caret line="76" column="0" selection-start-line="76" selection-start-column="0" selection-end-line="76" selection-end-column="0" />
|
|
50
49
|
<folding />
|
|
51
50
|
</state>
|
|
52
51
|
</provider>
|
|
53
52
|
</entry>
|
|
54
53
|
</file>
|
|
55
|
-
<file leaf-file-name="
|
|
56
|
-
<entry file="file://$PROJECT_DIR$/
|
|
54
|
+
<file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
|
|
55
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
57
56
|
<provider selected="true" editor-type-id="text-editor">
|
|
58
|
-
<state vertical-scroll-proportion="0.
|
|
59
|
-
<caret line="
|
|
57
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
|
|
58
|
+
<caret line="0" column="56" selection-start-line="0" selection-start-column="56" selection-end-line="0" selection-end-column="56" />
|
|
60
59
|
<folding />
|
|
61
60
|
</state>
|
|
62
61
|
</provider>
|
|
63
62
|
</entry>
|
|
64
63
|
</file>
|
|
65
|
-
<file leaf-file-name="
|
|
66
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/
|
|
64
|
+
<file leaf-file-name="local_command.rb" pinned="false" current="false" current-in-tab="false">
|
|
65
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/local_command.rb">
|
|
67
66
|
<provider selected="true" editor-type-id="text-editor">
|
|
68
|
-
<state vertical-scroll-proportion="
|
|
69
|
-
<caret line="
|
|
67
|
+
<state vertical-scroll-proportion="-7.1923075" vertical-offset="0" max-vertical-offset="1649">
|
|
68
|
+
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
|
|
70
69
|
<folding />
|
|
71
70
|
</state>
|
|
72
71
|
</provider>
|
|
73
72
|
</entry>
|
|
74
73
|
</file>
|
|
75
|
-
<file leaf-file-name="
|
|
76
|
-
<entry file="file://$PROJECT_DIR$/
|
|
74
|
+
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
|
75
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
77
76
|
<provider selected="true" editor-type-id="text-editor">
|
|
78
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
79
|
-
<caret line="
|
|
77
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="1" max-vertical-offset="510">
|
|
78
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
|
80
79
|
<folding />
|
|
81
80
|
</state>
|
|
82
81
|
</provider>
|
|
83
82
|
</entry>
|
|
84
83
|
</file>
|
|
85
|
-
<file leaf-file-name="
|
|
86
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/
|
|
84
|
+
<file leaf-file-name="remote_command.rb" pinned="false" current="true" current-in-tab="true">
|
|
85
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
|
|
87
86
|
<provider selected="true" editor-type-id="text-editor">
|
|
88
|
-
<state vertical-scroll-proportion="0.
|
|
89
|
-
<caret line="
|
|
87
|
+
<state vertical-scroll-proportion="0.14718615" vertical-offset="0" max-vertical-offset="2006">
|
|
88
|
+
<caret line="4" column="19" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
|
|
89
|
+
<folding />
|
|
90
|
+
</state>
|
|
91
|
+
</provider>
|
|
92
|
+
</entry>
|
|
93
|
+
</file>
|
|
94
|
+
<file leaf-file-name="executable.rb" pinned="false" current="false" current-in-tab="false">
|
|
95
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
|
|
96
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
97
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1309">
|
|
98
|
+
<caret line="5" column="30" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="30" />
|
|
90
99
|
<folding />
|
|
91
100
|
</state>
|
|
92
101
|
</provider>
|
|
@@ -121,20 +130,21 @@
|
|
|
121
130
|
<option value="$PROJECT_DIR$/lib/executable.rb" />
|
|
122
131
|
<option value="$PROJECT_DIR$/lib/script_locator.rb" />
|
|
123
132
|
<option value="$PROJECT_DIR$/lib/script_executor.rb" />
|
|
124
|
-
<option value="$PROJECT_DIR$/lib/script_executor/local_command.rb" />
|
|
125
133
|
<option value="$PROJECT_DIR$/README.md" />
|
|
126
|
-
<option value="$PROJECT_DIR$/lib/script_executor/remote_command.rb" />
|
|
127
|
-
<option value="$PROJECT_DIR$/spec/executable_spec.rb" />
|
|
128
134
|
<option value="$PROJECT_DIR$/spec/test.conf" />
|
|
129
135
|
<option value="$USER_HOME$/.rvm/gems/ruby-1.9.3-p545@script_executor/gems/text-interpolator-1.0.0/lib/text_interpolator/text_interpolator.rb" />
|
|
130
136
|
<option value="$PROJECT_DIR$/Rakefile" />
|
|
131
137
|
<option value="$PROJECT_DIR$/script_executor.gemspec.erb" />
|
|
132
138
|
<option value="$PROJECT_DIR$/lib/script_executor/script_locator.rb" />
|
|
133
139
|
<option value="$PROJECT_DIR$/spec/script_locator_spec.rb" />
|
|
134
|
-
<option value="$PROJECT_DIR$/
|
|
140
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
|
135
141
|
<option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
|
|
136
142
|
<option value="$PROJECT_DIR$/CHANGES" />
|
|
137
|
-
<option value="$PROJECT_DIR$/
|
|
143
|
+
<option value="$PROJECT_DIR$/lib/script_executor/executable.rb" />
|
|
144
|
+
<option value="$PROJECT_DIR$/lib/script_executor/local_command.rb" />
|
|
145
|
+
<option value="$PROJECT_DIR$/spec/spec_helper.rb" />
|
|
146
|
+
<option value="$PROJECT_DIR$/spec/executable_spec.rb" />
|
|
147
|
+
<option value="$PROJECT_DIR$/lib/script_executor/remote_command.rb" />
|
|
138
148
|
</list>
|
|
139
149
|
</option>
|
|
140
150
|
</component>
|
|
@@ -170,6 +180,7 @@
|
|
|
170
180
|
<sortByType />
|
|
171
181
|
</navigator>
|
|
172
182
|
<panes>
|
|
183
|
+
<pane id="Scope" />
|
|
173
184
|
<pane id="ProjectPane">
|
|
174
185
|
<subPane>
|
|
175
186
|
<PATH>
|
|
@@ -240,7 +251,6 @@
|
|
|
240
251
|
</PATH>
|
|
241
252
|
</subPane>
|
|
242
253
|
</pane>
|
|
243
|
-
<pane id="Scope" />
|
|
244
254
|
</panes>
|
|
245
255
|
</component>
|
|
246
256
|
<component name="PropertiesComponent">
|
|
@@ -270,8 +280,8 @@
|
|
|
270
280
|
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth3" value="989" />
|
|
271
281
|
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder3" value="3" />
|
|
272
282
|
</component>
|
|
273
|
-
<component name="RunManager" selected="RSpec.
|
|
274
|
-
<configuration default="false" name="
|
|
283
|
+
<component name="RunManager" selected="RSpec.executable_spec">
|
|
284
|
+
<configuration default="false" name="executable_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
275
285
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
276
286
|
<module name="script_executor" />
|
|
277
287
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -291,7 +301,7 @@
|
|
|
291
301
|
</EXTENSION>
|
|
292
302
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
293
303
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
294
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
304
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
295
305
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
296
306
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
297
307
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
@@ -303,13 +313,11 @@
|
|
|
303
313
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
304
314
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
305
315
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
306
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
307
316
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
308
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
309
317
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
310
318
|
<method />
|
|
311
319
|
</configuration>
|
|
312
|
-
<configuration default="false" name="
|
|
320
|
+
<configuration default="false" name="MyExecutable remote execution should execute commands from :script parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
313
321
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
314
322
|
<module name="script_executor" />
|
|
315
323
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -320,7 +328,7 @@
|
|
|
320
328
|
<envs>
|
|
321
329
|
<env name="JRUBY_OPTS" value="-X+O" />
|
|
322
330
|
</envs>
|
|
323
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
331
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
324
332
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
325
333
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
326
334
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -332,7 +340,7 @@
|
|
|
332
340
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
333
341
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
334
342
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
335
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
343
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable remote execution should execute commands from :script parameter" />
|
|
336
344
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
337
345
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
338
346
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -345,7 +353,7 @@
|
|
|
345
353
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
346
354
|
<method />
|
|
347
355
|
</configuration>
|
|
348
|
-
<configuration default="false" name="MyExecutable
|
|
356
|
+
<configuration default="false" name="MyExecutable local execution should execute commands locally from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
349
357
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
350
358
|
<module name="script_executor" />
|
|
351
359
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -368,7 +376,7 @@
|
|
|
368
376
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
369
377
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
370
378
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
371
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable
|
|
379
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable local execution should execute commands locally from :script parameter" />
|
|
372
380
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
373
381
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
374
382
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -381,7 +389,7 @@
|
|
|
381
389
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
382
390
|
<method />
|
|
383
391
|
</configuration>
|
|
384
|
-
<configuration default="false" name="
|
|
392
|
+
<configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
385
393
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
386
394
|
<module name="script_executor" />
|
|
387
395
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -392,7 +400,7 @@
|
|
|
392
400
|
<envs>
|
|
393
401
|
<env name="JRUBY_OPTS" value="-X+O" />
|
|
394
402
|
</envs>
|
|
395
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
|
403
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
396
404
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
397
405
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
398
406
|
<COVERAGE_PATTERN ENABLED="true">
|
|
@@ -401,10 +409,10 @@
|
|
|
401
409
|
</EXTENSION>
|
|
402
410
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
403
411
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
404
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
412
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
|
405
413
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
406
414
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
407
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
415
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside current file" />
|
|
408
416
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
409
417
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
410
418
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -413,11 +421,11 @@
|
|
|
413
421
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
414
422
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
415
423
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
416
|
-
<RunnerSettings RunnerId="
|
|
417
|
-
<ConfigurationWrapper RunnerId="
|
|
424
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
425
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
418
426
|
<method />
|
|
419
427
|
</configuration>
|
|
420
|
-
<configuration default="false" name="
|
|
428
|
+
<configuration default="false" name="MyExecutable vagrant should execute commands from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
421
429
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
422
430
|
<module name="script_executor" />
|
|
423
431
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
@@ -437,10 +445,10 @@
|
|
|
437
445
|
</EXTENSION>
|
|
438
446
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
439
447
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
440
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
|
448
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
|
441
449
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
442
450
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
443
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
|
451
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable vagrant should execute commands from :script parameter" />
|
|
444
452
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
445
453
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
446
454
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
@@ -449,8 +457,8 @@
|
|
|
449
457
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
450
458
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
451
459
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
452
|
-
<RunnerSettings RunnerId="
|
|
453
|
-
<ConfigurationWrapper RunnerId="
|
|
460
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
461
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
454
462
|
<method />
|
|
455
463
|
</configuration>
|
|
456
464
|
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
|
|
@@ -540,6 +548,9 @@
|
|
|
540
548
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
|
541
549
|
<method />
|
|
542
550
|
</configuration>
|
|
551
|
+
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
|
|
552
|
+
<method />
|
|
553
|
+
</configuration>
|
|
543
554
|
<configuration default="true" type="RubyRemoteDebugConfigurationType" factoryName="Ruby remote debug">
|
|
544
555
|
<RUBY_REMOTE_DEBUG_CONFIG NAME="REMOTE_HOST" VALUE="localhost" />
|
|
545
556
|
<RUBY_REMOTE_DEBUG_CONFIG NAME="PORT" VALUE="1234" />
|
|
@@ -560,19 +571,19 @@
|
|
|
560
571
|
</configuration>
|
|
561
572
|
<list size="6">
|
|
562
573
|
<item index="0" class="java.lang.String" itemvalue="Ruby remote debug.remote" />
|
|
563
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
|
564
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
|
565
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.MyExecutable
|
|
566
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
|
567
|
-
<item index="5" class="java.lang.String" itemvalue="RSpec.
|
|
574
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.executable_spec" />
|
|
575
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.MyExecutable remote execution should execute commands from :script parameter" />
|
|
576
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.MyExecutable local execution should execute commands locally from :script parameter: script_executor" />
|
|
577
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" />
|
|
578
|
+
<item index="5" class="java.lang.String" itemvalue="RSpec.MyExecutable vagrant should execute commands from :script parameter: script_executor" />
|
|
568
579
|
</list>
|
|
569
580
|
<recent_temporary>
|
|
570
581
|
<list size="5">
|
|
571
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
|
572
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.MyExecutable
|
|
573
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
|
574
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
|
575
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
|
582
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.executable_spec" />
|
|
583
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.MyExecutable vagrant should execute commands from :script parameter: script_executor" />
|
|
584
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" />
|
|
585
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.MyExecutable local execution should execute commands locally from :script parameter: script_executor" />
|
|
586
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.MyExecutable remote execution should execute commands from :script parameter" />
|
|
576
587
|
</list>
|
|
577
588
|
</recent_temporary>
|
|
578
589
|
</component>
|
|
@@ -623,7 +634,15 @@
|
|
|
623
634
|
<created>1402340798139</created>
|
|
624
635
|
<updated>1402340798139</updated>
|
|
625
636
|
</task>
|
|
626
|
-
<
|
|
637
|
+
<task id="LOCAL-00010" summary="Bug fix">
|
|
638
|
+
<created>1402340860040</created>
|
|
639
|
+
<updated>1402340860040</updated>
|
|
640
|
+
</task>
|
|
641
|
+
<task id="LOCAL-00011" summary="Bug fix">
|
|
642
|
+
<created>1402345796776</created>
|
|
643
|
+
<updated>1402345796776</updated>
|
|
644
|
+
</task>
|
|
645
|
+
<option name="localTasksCounter" value="12" />
|
|
627
646
|
<servers />
|
|
628
647
|
</component>
|
|
629
648
|
<component name="ToolWindowManager">
|
|
@@ -641,8 +660,8 @@
|
|
|
641
660
|
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32822478" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
642
661
|
<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" />
|
|
643
662
|
<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" />
|
|
644
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
|
645
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
|
663
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2252585" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
|
|
664
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3210191" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
646
665
|
<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" />
|
|
647
666
|
<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" />
|
|
648
667
|
<window_info id="Heroku" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
@@ -672,9 +691,9 @@
|
|
|
672
691
|
<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" />
|
|
673
692
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
674
693
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3199498" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
|
|
675
|
-
<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="6" side_tool="false" content_ui="tabs" />
|
|
676
|
-
<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" />
|
|
677
694
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3226152" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
695
|
+
<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" />
|
|
696
|
+
<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="6" side_tool="false" content_ui="tabs" />
|
|
678
697
|
<window_info id="LuaJ" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
679
698
|
</layout-to-restore>
|
|
680
699
|
</component>
|
|
@@ -724,14 +743,6 @@
|
|
|
724
743
|
</breakpoint-manager>
|
|
725
744
|
</component>
|
|
726
745
|
<component name="editorHistoryManager">
|
|
727
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
|
|
728
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
729
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="120">
|
|
730
|
-
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
731
|
-
<folding />
|
|
732
|
-
</state>
|
|
733
|
-
</provider>
|
|
734
|
-
</entry>
|
|
735
746
|
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
|
736
747
|
<provider selected="true" editor-type-id="text-editor">
|
|
737
748
|
<state vertical-scroll-proportion="0.0" vertical-offset="495" max-vertical-offset="660">
|
|
@@ -972,13 +983,6 @@
|
|
|
972
983
|
</state>
|
|
973
984
|
</provider>
|
|
974
985
|
</entry>
|
|
975
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/local_command.rb">
|
|
976
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
977
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="154" max-vertical-offset="1260">
|
|
978
|
-
<caret line="21" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
979
|
-
</state>
|
|
980
|
-
</provider>
|
|
981
|
-
</entry>
|
|
982
986
|
<entry file="file://$PROJECT_DIR$/lib/executable.rb">
|
|
983
987
|
<provider selected="true" editor-type-id="text-editor">
|
|
984
988
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
|
|
@@ -986,13 +990,6 @@
|
|
|
986
990
|
</state>
|
|
987
991
|
</provider>
|
|
988
992
|
</entry>
|
|
989
|
-
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
990
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
991
|
-
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="90">
|
|
992
|
-
<caret line="0" column="42" selection-start-line="0" selection-start-column="42" selection-end-line="0" selection-end-column="42" />
|
|
993
|
-
</state>
|
|
994
|
-
</provider>
|
|
995
|
-
</entry>
|
|
996
993
|
<entry file="file://$PROJECT_DIR$/lib/script_locator.rb">
|
|
997
994
|
<provider selected="true" editor-type-id="text-editor">
|
|
998
995
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="604">
|
|
@@ -1014,20 +1011,6 @@
|
|
|
1014
1011
|
</state>
|
|
1015
1012
|
</provider>
|
|
1016
1013
|
</entry>
|
|
1017
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
|
|
1018
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
1019
|
-
<state vertical-scroll-proportion="-10.24" vertical-offset="254" max-vertical-offset="1717">
|
|
1020
|
-
<caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
|
|
1021
|
-
</state>
|
|
1022
|
-
</provider>
|
|
1023
|
-
</entry>
|
|
1024
|
-
<entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
|
|
1025
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
1026
|
-
<state vertical-scroll-proportion="-0.68" vertical-offset="204" max-vertical-offset="1989">
|
|
1027
|
-
<caret line="13" column="42" selection-start-line="13" selection-start-column="42" selection-end-line="13" selection-end-column="42" />
|
|
1028
|
-
</state>
|
|
1029
|
-
</provider>
|
|
1030
|
-
</entry>
|
|
1031
1014
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
1032
1015
|
<provider editor-type-id="MarkdownPreviewEditor">
|
|
1033
1016
|
<state />
|
|
@@ -1035,7 +1018,6 @@
|
|
|
1035
1018
|
<provider selected="true" editor-type-id="text-editor">
|
|
1036
1019
|
<state vertical-scroll-proportion="0.15934066" vertical-offset="1465" max-vertical-offset="2193">
|
|
1037
1020
|
<caret line="93" column="24" selection-start-line="93" selection-start-column="24" selection-end-line="93" selection-end-column="24" />
|
|
1038
|
-
<folding />
|
|
1039
1021
|
</state>
|
|
1040
1022
|
</provider>
|
|
1041
1023
|
</entry>
|
|
@@ -1047,17 +1029,33 @@
|
|
|
1047
1029
|
</state>
|
|
1048
1030
|
</provider>
|
|
1049
1031
|
</entry>
|
|
1050
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1032
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/script_executor.rb">
|
|
1051
1033
|
<provider selected="true" editor-type-id="text-editor">
|
|
1052
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
1053
|
-
<caret line="
|
|
1034
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="221">
|
|
1035
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
1054
1036
|
<folding />
|
|
1055
1037
|
</state>
|
|
1056
1038
|
</provider>
|
|
1057
1039
|
</entry>
|
|
1058
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/
|
|
1040
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
|
|
1059
1041
|
<provider selected="true" editor-type-id="text-editor">
|
|
1060
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
|
1042
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
|
|
1043
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
1044
|
+
<folding />
|
|
1045
|
+
</state>
|
|
1046
|
+
</provider>
|
|
1047
|
+
</entry>
|
|
1048
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
|
1049
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1050
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="747" max-vertical-offset="1292">
|
|
1051
|
+
<caret line="68" column="16" selection-start-line="68" selection-start-column="16" selection-end-line="68" selection-end-column="16" />
|
|
1052
|
+
<folding />
|
|
1053
|
+
</state>
|
|
1054
|
+
</provider>
|
|
1055
|
+
</entry>
|
|
1056
|
+
<entry file="file://$PROJECT_DIR$/spec/test.conf">
|
|
1057
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1058
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="482">
|
|
1061
1059
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
1062
1060
|
<folding />
|
|
1063
1061
|
</state>
|
|
@@ -1066,31 +1064,55 @@
|
|
|
1066
1064
|
<entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
|
|
1067
1065
|
<provider selected="true" editor-type-id="text-editor">
|
|
1068
1066
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1309">
|
|
1069
|
-
<caret line="
|
|
1067
|
+
<caret line="5" column="30" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="30" />
|
|
1070
1068
|
<folding />
|
|
1071
1069
|
</state>
|
|
1072
1070
|
</provider>
|
|
1073
1071
|
</entry>
|
|
1074
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1072
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
1075
1073
|
<provider selected="true" editor-type-id="text-editor">
|
|
1076
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
1077
|
-
<caret line="
|
|
1074
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="1" max-vertical-offset="510">
|
|
1075
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
|
|
1078
1076
|
<folding />
|
|
1079
1077
|
</state>
|
|
1080
1078
|
</provider>
|
|
1081
1079
|
</entry>
|
|
1082
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1080
|
+
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
|
1083
1081
|
<provider selected="true" editor-type-id="text-editor">
|
|
1084
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
|
1085
|
-
<caret line="
|
|
1082
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="596" max-vertical-offset="1071">
|
|
1083
|
+
<caret line="41" column="0" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
|
|
1086
1084
|
<folding />
|
|
1087
1085
|
</state>
|
|
1088
1086
|
</provider>
|
|
1089
1087
|
</entry>
|
|
1090
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1088
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
1091
1089
|
<provider selected="true" editor-type-id="text-editor">
|
|
1092
|
-
<state vertical-scroll-proportion="0.
|
|
1093
|
-
<caret line="
|
|
1090
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
|
|
1091
|
+
<caret line="0" column="56" selection-start-line="0" selection-start-column="56" selection-end-line="0" selection-end-column="56" />
|
|
1092
|
+
<folding />
|
|
1093
|
+
</state>
|
|
1094
|
+
</provider>
|
|
1095
|
+
</entry>
|
|
1096
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/local_command.rb">
|
|
1097
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1098
|
+
<state vertical-scroll-proportion="-7.1923075" vertical-offset="0" max-vertical-offset="1649">
|
|
1099
|
+
<caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
|
|
1100
|
+
<folding />
|
|
1101
|
+
</state>
|
|
1102
|
+
</provider>
|
|
1103
|
+
</entry>
|
|
1104
|
+
<entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
|
|
1105
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1106
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2193">
|
|
1107
|
+
<caret line="76" column="0" selection-start-line="76" selection-start-column="0" selection-end-line="76" selection-end-column="0" />
|
|
1108
|
+
<folding />
|
|
1109
|
+
</state>
|
|
1110
|
+
</provider>
|
|
1111
|
+
</entry>
|
|
1112
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
|
|
1113
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1114
|
+
<state vertical-scroll-proportion="0.14718615" vertical-offset="0" max-vertical-offset="2006">
|
|
1115
|
+
<caret line="4" column="19" selection-start-line="4" selection-start-column="19" selection-end-line="4" selection-end-column="19" />
|
|
1094
1116
|
<folding />
|
|
1095
1117
|
</state>
|
|
1096
1118
|
</provider>
|
data/CHANGES
CHANGED
|
@@ -7,6 +7,8 @@ class LocalCommand
|
|
|
7
7
|
attr_reader :password, :suppress_output, :capture_output, :simulate
|
|
8
8
|
|
|
9
9
|
def initialize params
|
|
10
|
+
params = sanitize_parameters params
|
|
11
|
+
|
|
10
12
|
@password = params[:password]
|
|
11
13
|
@suppress_output = params[:suppress_output]
|
|
12
14
|
@capture_output = params[:capture_output]
|
|
@@ -66,6 +68,17 @@ class LocalCommand
|
|
|
66
68
|
def inline_password password
|
|
67
69
|
password ? "<<EOF\n#{password}\nEOF" : ""
|
|
68
70
|
end
|
|
71
|
+
|
|
72
|
+
def sanitize_parameters params
|
|
73
|
+
params.each do |key, _|
|
|
74
|
+
params.delete(key) unless permitted_params.include? key.to_sym
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def permitted_params
|
|
79
|
+
@permitted_params ||= [:script, :sudo, :remote, :line_action, :password,
|
|
80
|
+
:suppress_output, :capture_output, :simulate]
|
|
81
|
+
end
|
|
69
82
|
end
|
|
70
83
|
|
|
71
84
|
#require 'shellwords'
|
|
@@ -6,7 +6,10 @@ class RemoteCommand
|
|
|
6
6
|
attr_reader :host, :user, :options, :suppress_output, :capture_output, :simulate
|
|
7
7
|
|
|
8
8
|
def initialize params
|
|
9
|
+
params = sanitize_parameters params
|
|
10
|
+
|
|
9
11
|
@host = params.delete(:domain)
|
|
12
|
+
@host = params.delete(:host) if host.nil? and params[:host]
|
|
10
13
|
@user = params.delete(:user)
|
|
11
14
|
|
|
12
15
|
@suppress_output = params.delete(:suppress_output)
|
|
@@ -91,5 +94,19 @@ class RemoteCommand
|
|
|
91
94
|
def ask_password? line
|
|
92
95
|
line =~ /^\[sudo\] password for user:/ || line =~ /sudo password:/ || line =~ /Password:/
|
|
93
96
|
end
|
|
97
|
+
|
|
98
|
+
def sanitize_parameters params
|
|
99
|
+
params.each do |key, _|
|
|
100
|
+
params.delete(key) unless permitted_params.include? key.to_sym
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
params
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def permitted_params
|
|
107
|
+
@permitted_params ||= [:script, :sudo, :remote, :line_action, :password,
|
|
108
|
+
:suppress_output, :capture_output, :simulate,
|
|
109
|
+
:domain, :host, :user, :options]
|
|
110
|
+
end
|
|
94
111
|
end
|
|
95
112
|
|
data/spec/executable_spec.rb
CHANGED
|
@@ -21,13 +21,13 @@ describe MyExecutable do
|
|
|
21
21
|
}
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
it "
|
|
24
|
+
it "executes commands from :script parameter" do
|
|
25
25
|
result = subject.execute @local_info.merge(:script => "whoami")
|
|
26
26
|
|
|
27
|
-
result.
|
|
27
|
+
expect(result).to eq ENV['USER']
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
it "
|
|
30
|
+
it "executes commands from the block of code" do
|
|
31
31
|
result = subject.execute @local_info do
|
|
32
32
|
%Q(
|
|
33
33
|
whoami
|
|
@@ -35,10 +35,10 @@ describe MyExecutable do
|
|
|
35
35
|
)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
result.
|
|
38
|
+
expect(result).to eq "#{ENV['USER']}\n#{ENV['USER']}"
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
it "
|
|
41
|
+
it "executes commands from the block of code as sudo" do
|
|
42
42
|
result = subject.execute @local_info.merge(:sudo => true, :password => @password) do
|
|
43
43
|
%Q(
|
|
44
44
|
whoami
|
|
@@ -46,7 +46,7 @@ describe MyExecutable do
|
|
|
46
46
|
)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
result.
|
|
49
|
+
expect(result).to eq "root\nroot"
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -62,20 +62,32 @@ describe MyExecutable do
|
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
it "
|
|
65
|
+
it "executes commands from :script parameter" do
|
|
66
66
|
result = subject.execute @remote_info.merge(:script => "whoami")
|
|
67
67
|
|
|
68
|
-
result.
|
|
68
|
+
expect(result).to eq ENV['USER']
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
it "
|
|
71
|
+
it "executes commands from the block of code" do
|
|
72
72
|
result = subject.execute @remote_info do
|
|
73
73
|
%Q(
|
|
74
74
|
whoami
|
|
75
75
|
)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
result.
|
|
78
|
+
expect(result).to eq ENV['USER']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
it "executes commands with :host parameter instead of :domain parameter" do
|
|
82
|
+
result = subject.execute @remote_info.merge(:script => "whoami", :host => 'localhost', :domain => nil)
|
|
83
|
+
|
|
84
|
+
expect(result).to eq ENV['USER']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
it "executes commands with :host parameter instead of :domain parameter" do
|
|
88
|
+
result = subject.execute @remote_info.merge(:script => "whoami", :home => 'some_home')
|
|
89
|
+
|
|
90
|
+
expect(result).to eq ENV['USER']
|
|
79
91
|
end
|
|
80
92
|
|
|
81
93
|
#it "should execute sudo command" do
|
|
@@ -92,7 +104,7 @@ describe MyExecutable do
|
|
|
92
104
|
describe "vagrant" do
|
|
93
105
|
before :all do
|
|
94
106
|
@remote_info = {
|
|
95
|
-
:domain => "
|
|
107
|
+
:domain => "22.22.22.22",
|
|
96
108
|
:user => "vagrant",
|
|
97
109
|
:password => "vagrant",
|
|
98
110
|
:port => 2222,
|
|
@@ -104,7 +116,7 @@ describe MyExecutable do
|
|
|
104
116
|
it "should execute commands from :script parameter" do
|
|
105
117
|
result = subject.execute @remote_info.merge(:script => "whoami")
|
|
106
118
|
|
|
107
|
-
result.
|
|
119
|
+
expect(result).to eq "vagrant"
|
|
108
120
|
end
|
|
109
121
|
end
|
|
110
122
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: script_executor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Shvets
|
|
@@ -14,70 +14,70 @@ dependencies:
|
|
|
14
14
|
name: highline
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.6'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.6'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: net-ssh
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ~>
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '2.8'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ~>
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '2.8'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: text-interpolator
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ~>
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '1.0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ~>
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: gemspec_deps_gen
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ~>
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '1.1'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ~>
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.1'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: gemcutter
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - ~>
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0.7'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - ~>
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0.7'
|
|
83
83
|
description: This library helps to execute code, locally or remote over ssh
|
|
@@ -86,19 +86,19 @@ executables: []
|
|
|
86
86
|
extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
|
88
88
|
files:
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
89
|
+
- .gitignore
|
|
90
|
+
- .idea/.name
|
|
91
|
+
- .idea/.rakeTasks
|
|
92
|
+
- .idea/codeStyleSettings.xml
|
|
93
|
+
- .idea/encodings.xml
|
|
94
|
+
- .idea/misc.xml
|
|
95
|
+
- .idea/modules.xml
|
|
96
|
+
- .idea/scopes/scope_settings.xml
|
|
97
|
+
- .idea/script_executor.iml
|
|
98
|
+
- .idea/vcs.xml
|
|
99
|
+
- .idea/workspace.xml
|
|
100
|
+
- .ruby-gemset
|
|
101
|
+
- .ruby-version
|
|
102
102
|
- CHANGES
|
|
103
103
|
- Gemfile
|
|
104
104
|
- Gemfile.lock
|
|
@@ -131,12 +131,12 @@ require_paths:
|
|
|
131
131
|
- lib
|
|
132
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
|
134
|
-
- -
|
|
134
|
+
- - ! '>='
|
|
135
135
|
- !ruby/object:Gem::Version
|
|
136
136
|
version: '0'
|
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
|
139
|
-
- -
|
|
139
|
+
- - ! '>='
|
|
140
140
|
- !ruby/object:Gem::Version
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|