script_executor 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ad7d6d978b58ac38bf18bc60332ed289a96c330
4
- data.tar.gz: 52c0885b91fe4fccb836d92ca50585e278f09160
3
+ metadata.gz: 46d6695b3e0e7450b4fcec663a84a49b085cc90f
4
+ data.tar.gz: b6fe05e4038b43b2e69778500b26a6eeb4935554
5
5
  SHA512:
6
- metadata.gz: d44c4e67832ccf6ca9c168988ec9f032965a9c6613f2fbbb983714166d7b392db36c0a86aba46bf4a2e72709200697379f50d54bb9e5651ce9b3f552ee1d29e5
7
- data.tar.gz: 1fbb2d1f216efc03999fa8c03cbff52d4110a57145707a07338b2004ebdf96d3e6b94545e2b9da33a8eb00c7f61dc0c9903ba058635f0d4d2b21ef3c296005c7
6
+ metadata.gz: 14c40167ea6d3f4830ad6034ac47c46c952c787aa57c0dfedec7880c6e62dbf6692f6d0d6d5872b4061aa3cc2f6468ea135d8fb4ec66ddaf1b706e3f66fac077
7
+ data.tar.gz: bef48a0165ac5110a6a8032e1b477baf8b649dcf5a3385305035c6ab120c1a5b702c5f8df386e82fd5ce093ed6f59a8e3ee419f23bfabc3af9c57b40c1229911
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ tmp
16
16
  .yardoc
17
17
  _yardoc
18
18
  doc/
19
+ .idea
data/CHANGES CHANGED
@@ -102,6 +102,10 @@
102
102
 
103
103
  * Upgrade net:ssh, small bug fix.
104
104
 
105
- == Version 1.7.0, 1.7.1
105
+ == Version 1.7.0
106
106
 
107
107
  * Replace simple parsing with parslet-based parsing.
108
+
109
+ == Version 1.7.1, 1.7.2
110
+
111
+ * Bug fix.
@@ -26,14 +26,34 @@ class BaseProvision
26
26
  create_thor_methods(parent_class) if parent_class.ancestors.collect(&:to_s).include?('Thor')
27
27
 
28
28
  @server_info = env[:node] ? env[:node] : {}
29
+
30
+ @terminal ||= HighLine.new
31
+ end
32
+
33
+ def run script_name, params={}, type=:string
34
+ execute(server_info) do
35
+ evaluate_script_body(script_list[script_name.to_sym][:codeLines].join("\n"), params, type)
36
+ end
29
37
  end
30
38
 
31
- protected
39
+ def ask_password message
40
+ @terminal.ask(message) { |q| q.echo = "*" }
41
+ end
42
+
43
+ def read_config config_file_name
44
+ hash = JSON.parse(File.read(config_file_name), :symbolize_names => true)
45
+
46
+ result = interpolator.interpolate hash
47
+
48
+ puts interpolator.errors if interpolator.errors.size > 0
49
+
50
+ result
51
+ end
32
52
 
33
53
  def create_script_methods
34
54
  script_list.keys.each do |name|
35
55
  singleton_class.send(:define_method, name.to_sym) do
36
- self.send :run, server_info, name.to_s, env
56
+ self.run name.to_s, env
37
57
  end
38
58
  end
39
59
  end
@@ -54,30 +74,4 @@ class BaseProvision
54
74
  end
55
75
  end
56
76
 
57
- def read_config config_file_name
58
- hash = JSON.parse(File.read(config_file_name), :symbolize_names => true)
59
-
60
- result = interpolator.interpolate hash
61
-
62
- puts interpolator.errors if interpolator.errors.size > 0
63
-
64
- result
65
- end
66
-
67
- def terminal
68
- @terminal ||= HighLine.new
69
- end
70
-
71
- def ask_password message
72
- terminal.ask(message) { |q| q.echo = "*" }
73
- end
74
-
75
- def run server_info, script_name, params
76
- execute(server_info) { evaluate_script_body(script_list[script_name][:codeLines], params, :string) }
77
- end
78
-
79
- def run_command server_info, command
80
- execute(server_info.merge({script: command}))
81
- end
82
-
83
77
  end
@@ -13,33 +13,18 @@ module ScriptLocator
13
13
  end
14
14
 
15
15
  def evaluate_script_body content, env, type=:erb
16
- if content.class == Array
17
- content.each_with_index do |el, index|
18
- content[index] = evaluate_script_body el, env, type
19
- end
20
- else
21
- case type
22
- when :erb
23
- template = ERB.new content
24
- template.result(env).strip
16
+ case type
17
+ when :erb
18
+ template = ERB.new content
19
+ template.result(env).strip
20
+ else
21
+ interpolator = TextInterpolator.new
25
22
 
26
- when :string
27
- interpolator = TextInterpolator.new
23
+ result = interpolator.interpolate content, env
28
24
 
29
- result = interpolator.interpolate content, env
25
+ puts interpolator.errors if interpolator.errors.size > 0
30
26
 
31
- puts interpolator.errors if interpolator.errors.size > 0
32
-
33
- result
34
- else
35
- interpolator = TextInterpolator.new
36
-
37
- result = interpolator.interpolate content, env
38
-
39
- puts interpolator.errors if interpolator.errors.size > 0
40
-
41
- result
42
- end
27
+ result
43
28
  end
44
29
  end
45
30
 
@@ -32,8 +32,6 @@ class ScriptsParser < Parslet::Parser
32
32
  begin
33
33
  parsed_content = super content + "\n"
34
34
 
35
- # ap parsed_content
36
-
37
35
  transformer = ScriptsTransformer.new
38
36
 
39
37
  transformer.apply(parsed_content)[:scripts]
@@ -1,3 +1,3 @@
1
1
  class ScriptExecutor
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
@@ -8,11 +8,22 @@ class ThorClass < Thor
8
8
  end
9
9
 
10
10
  describe BaseProvision do
11
- describe "#parse" do
11
+ subject {
12
+ BaseProvision.new ThorClass, 'spec/support/base.conf.json', ['spec/support/big_script.sh']
13
+ }
14
+
15
+ describe "#initialize" do
16
+ it "parses content from file" do
17
+ expect(subject.script_list.size).to equal(10)
18
+ end
19
+ end
20
+
21
+ describe "#run" do
12
22
  it "parses content from file" do
13
- provision = BaseProvision.new ThorClass, 'spec/support/base.conf.json', ['spec/support/big_script.sh']
23
+ name = 'name'
24
+ result = subject.run 'test1', binding, :erb
14
25
 
15
- ap provision.script_list
26
+ ap result
16
27
  end
17
28
  end
18
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: script_executor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-25 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -143,18 +143,6 @@ extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
145
  - ".gitignore"
146
- - ".idea/.name"
147
- - ".idea/.rakeTasks"
148
- - ".idea/atlassian-ide-plugin.xml"
149
- - ".idea/codeStyleSettings.xml"
150
- - ".idea/encodings.xml"
151
- - ".idea/jsTestFinder.xml"
152
- - ".idea/misc.xml"
153
- - ".idea/modules.xml"
154
- - ".idea/scopes/scope_settings.xml"
155
- - ".idea/script_executor.iml"
156
- - ".idea/vcs.xml"
157
- - ".idea/workspace.xml"
158
146
  - ".ruby-gemset"
159
147
  - ".ruby-version"
160
148
  - CHANGES
data/.idea/.name DELETED
@@ -1 +0,0 @@
1
- script_executor
data/.idea/.rakeTasks DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -1,5 +0,0 @@
1
- <atlassian-ide-plugin>
2
- <project-configuration id="1">
3
- <servers id="2" />
4
- </project-configuration>
5
- </atlassian-ide-plugin>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectCodeStyleSettingsManager">
4
- <option name="PER_PROJECT_SETTINGS">
5
- <value>
6
- <XML>
7
- <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
8
- </XML>
9
- </value>
10
- </option>
11
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="alex" />
12
- </component>
13
- </project>
14
-
data/.idea/encodings.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavascriptTestFinderProjectComponent">
4
- <option name="productionExtensions">
5
- <list>
6
- <option value=".js" />
7
- <option value=".jsx" />
8
- </list>
9
- </option>
10
- <option name="testExtensions">
11
- <list>
12
- <option value=".spec.js" />
13
- <option value=".jstd" />
14
- </list>
15
- </option>
16
- </component>
17
- </project>
data/.idea/misc.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p429 [script_executor]" project-jdk-type="RUBY_SDK" />
4
- <component name="SvnBranchConfigurationManager">
5
- <option name="mySupportsUserInfoFilter" value="true" />
6
- </component>
7
- </project>
8
-
data/.idea/modules.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/script_executor.iml" filepath="$PROJECT_DIR$/.idea/script_executor.iml" />
6
- </modules>
7
- </component>
8
- </project>
9
-
@@ -1,5 +0,0 @@
1
- <component name="DependencyValidationManager">
2
- <state>
3
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
- </state>
5
- </component>
@@ -1,202 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="gem" name="Gem">
5
- <configuration>
6
- <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
- <option name="GEM_APP_TEST_PATH" value="" />
8
- <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
- </configuration>
10
- </facet>
11
- </component>
12
- <component name="ModuleRunConfigurationManager">
13
- <configuration default="false" name="Run spec 'script_locator_spec': script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
14
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
15
- <module name="script_executor" />
16
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
17
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
18
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
19
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
20
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
21
- <envs>
22
- <env name="JRUBY_OPTS" value="-X+O" />
23
- </envs>
24
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
25
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
26
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
27
- <COVERAGE_PATTERN ENABLED="true">
28
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
29
- </COVERAGE_PATTERN>
30
- </EXTENSION>
31
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
32
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
33
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
34
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
35
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
36
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
37
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
38
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
39
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
40
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
41
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
42
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
43
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
44
- <method />
45
- </configuration>
46
- <configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside external file and evaluates it as string: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
47
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
48
- <module name="script_executor" />
49
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
50
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
51
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
52
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
53
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
54
- <envs>
55
- <env name="JRUBY_OPTS" value="-X+O" />
56
- </envs>
57
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
58
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
59
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
60
- <COVERAGE_PATTERN ENABLED="true">
61
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
62
- </COVERAGE_PATTERN>
63
- </EXTENSION>
64
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
65
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
66
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
67
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
68
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside external file and evaluates it as string" />
69
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
70
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
71
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
72
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
73
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
74
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
75
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
76
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
77
- <method />
78
- </configuration>
79
- <configuration default="false" name="Run spec 'executable_spec': script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
80
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
81
- <module name="script_executor" />
82
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
83
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
84
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
85
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
86
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
87
- <envs>
88
- <env name="JRUBY_OPTS" value="-X+O" />
89
- </envs>
90
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
91
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
92
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
93
- <COVERAGE_PATTERN ENABLED="true">
94
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
95
- </COVERAGE_PATTERN>
96
- </EXTENSION>
97
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
98
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
99
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
100
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
101
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
102
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
103
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
104
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
105
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
106
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
107
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
108
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
109
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
110
- <method />
111
- </configuration>
112
- <configuration default="false" name="BaseProvision#parse parses content from file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
113
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
114
- <module name="script_executor" />
115
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
116
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
117
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
118
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
119
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
120
- <envs>
121
- <env name="JRUBY_OPTS" value="-X+O" />
122
- </envs>
123
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
124
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
125
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
126
- <COVERAGE_PATTERN ENABLED="true">
127
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
128
- </COVERAGE_PATTERN>
129
- </EXTENSION>
130
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
131
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/base_provision_spec.rb" />
132
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
133
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
134
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="BaseProvision#parse parses content from file" />
135
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
136
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
137
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
138
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
139
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
140
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
141
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
142
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
143
- <method />
144
- </configuration>
145
- <configuration default="false" name="ScriptsParser#parse parses content from file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
146
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
147
- <module name="script_executor" />
148
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
149
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
150
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
151
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
152
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
153
- <envs>
154
- <env name="JRUBY_OPTS" value="-X+O" />
155
- </envs>
156
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
157
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
158
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
159
- <COVERAGE_PATTERN ENABLED="true">
160
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
161
- </COVERAGE_PATTERN>
162
- </EXTENSION>
163
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
164
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/scripts_parser_spec.rb" />
165
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
166
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
167
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ScriptsParser#parse parses content from file" />
168
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
169
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
170
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
171
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
172
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
173
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
174
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
175
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
176
- <method />
177
- </configuration>
178
- </component>
179
- <component name="NewModuleRootManager">
180
- <content url="file://$MODULE_DIR$" />
181
- <orderEntry type="jdk" jdkName="RVM: ruby-2.2.3 [script_executor]" jdkType="RUBY_SDK" />
182
- <orderEntry type="sourceFolder" forTests="false" />
183
- <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.6.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
184
- <orderEntry type="library" scope="PROVIDED" name="blankslate (v3.1.3, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
185
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
186
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
187
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
188
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
189
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
190
- <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.15, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
191
- <orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
192
- <orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.9.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
193
- <orderEntry type="library" scope="PROVIDED" name="parslet (v1.7.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
194
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.3.0, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
195
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.3.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
196
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.3.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
197
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.3.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
198
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.3.0, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
199
- <orderEntry type="library" scope="PROVIDED" name="text-interpolator (v1.1.6, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
200
- <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
201
- </component>
202
- </module>
data/.idea/vcs.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
7
-