script_executor 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDgwMTRiNTUwZmRmZDdhNmQzMTE0MDdjN2Q0Njc0Y2ZlMWU3MWRmMQ==
4
+ NGNmYmI1ZDA4Mzc3MjMzYWJiMDllNDE1MWQxYTEzMWQ5MjNjZTY5NA==
5
5
  data.tar.gz: !binary |-
6
- M2E4ODI0YWU3MGU5Zjg5OWYyYjU4MTFkNTYzNTE4NmZmMzhkZjZhZQ==
6
+ MWI5ZWVjOTkwZTcwOWNmNWYwNGI3YzNmMDBlMDgzYmY1MzBhOWMwNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjY3ODA0OTg0NTYwNjA3ZWJkNjEzZmI1ZjE2NWE2MTE5Yzk0MTM4Y2JjNWZk
10
- YjM0NDJhZjNjMjc4Mjc5ZjRjNjFjNjYzOTFhZTI4NWYyNTFiNzUzNmFlMGQz
11
- MzJmNzFlMGQ2ZTM0NTYzNDNlNDllZTIwZDFiNzFjYjg4NzIwNzk=
9
+ NzQ2M2RhZDJiMzA5ZGVkZjBkMWEwMDkwMGUxMjMzOWIwNTc1MTcwMDczNTQ2
10
+ MTY1NDE3NzFhYWQ2ZWFjODZjMWFkZjA5ZmI1NTM1OWRkMjQyNDRkMmE5Mzgw
11
+ MTJjNTFmOWQwZWZiYmFhOTk2YzI0NWYzMDFhOGNkMWJmNmVhOTE=
12
12
  data.tar.gz: !binary |-
13
- Y2Q4YzBkNWU1OTliNTQ2NGY4ZTU2YWFjMjdiYjVkMzdmMjZhMzEwM2ExZjNm
14
- YmRiNDA2NDg2YjJkYWU3NzYwOTA3NzU4MjA5Zjg1MDE2ZWM3YTlhNmRkMTdh
15
- MWFhMTc0Y2Y2YzYyMGI2ODNiZmZkNzU3MDg0MzdmYTI0ODY2M2Q=
13
+ MTdiMTA4Njk2MjM1YzI5NzI2OTUxNDBhZjc2ZWQ0ZjY1NmNjMWVkMzJjZGY4
14
+ MTkwN2U4NWI1NDU5ZjM2Mjk0MzU3MThkMzU3NTlhODdhNTQ2ZjY3ZGJlZWM5
15
+ NDlmMmM3ODExZmY2ZWIxOTA3Y2E1ZjJhNGQ4ZGY0OGM5Zjk4M2Y=
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,13 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="" />
4
+ <list default="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/executable_spec.rb" afterPath="$PROJECT_DIR$/spec/executable_spec.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/script_executor/remote_command.rb" afterPath="$PROJECT_DIR$/lib/script_executor/remote_command.rb" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/script_executor/version.rb" afterPath="$PROJECT_DIR$/lib/script_executor/version.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
10
+ </list>
5
11
  <ignored path="script_executor.iws" />
6
12
  <ignored path=".idea/workspace.xml" />
7
13
  <option name="TRACKING_ENABLED" value="true" />
@@ -29,10 +35,19 @@
29
35
  </component>
30
36
  <component name="FileEditorManager">
31
37
  <leaf>
32
- <file leaf-file-name="executable.rb" pinned="false" current="false" current-in-tab="false">
33
- <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
38
+ <file leaf-file-name="executable_spec.rb" pinned="false" current="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
40
+ <provider selected="true" editor-type-id="text-editor">
41
+ <state line="100" column="43" selection-start="2350" selection-end="2350" vertical-scroll-proportion="0.0" vertical-offset="850" max-vertical-offset="1755">
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="remote_command.rb" pinned="false" current="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
34
49
  <provider selected="true" editor-type-id="text-editor">
35
- <state line="14" column="32" selection-start="350" selection-end="350" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1125">
50
+ <state line="34" column="157" selection-start="1077" selection-end="1077" vertical-scroll-proportion="0.0" vertical-offset="610" max-vertical-offset="1515">
36
51
  <folding />
37
52
  </state>
38
53
  </provider>
@@ -47,58 +62,31 @@
47
62
  </provider>
48
63
  </entry>
49
64
  </file>
50
- <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
65
+ <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
51
66
  <entry file="file://$PROJECT_DIR$/CHANGES">
52
67
  <provider selected="true" editor-type-id="text-editor">
53
- <state line="46" column="26" selection-start="573" selection-end="573" vertical-scroll-proportion="0.9474606" vertical-offset="149" max-vertical-offset="780">
68
+ <state line="48" column="17" selection-start="593" selection-end="593" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="840">
54
69
  <folding />
55
70
  </state>
56
71
  </provider>
57
72
  </entry>
58
73
  </file>
59
- <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
74
+ <file leaf-file-name="README.md" pinned="false" current="true" current-in-tab="true">
60
75
  <entry file="file://$PROJECT_DIR$/README.md">
61
76
  <provider editor-type-id="MarkdownPreviewEditor">
62
77
  <state />
63
78
  </provider>
64
79
  <provider selected="true" editor-type-id="text-editor">
65
- <state line="13" column="12" selection-start="217" selection-end="217" vertical-scroll-proportion="44.296295" vertical-offset="1391" max-vertical-offset="1935">
80
+ <state line="93" column="21" selection-start="1875" selection-end="1875" vertical-scroll-proportion="0.6911765" vertical-offset="1019" max-vertical-offset="1935">
66
81
  <folding />
67
82
  </state>
68
83
  </provider>
69
84
  </entry>
70
85
  </file>
71
- <file leaf-file-name="remote_command.rb" pinned="false" current="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
86
+ <file leaf-file-name="ssh.rb" pinned="false" current="false" current-in-tab="false">
87
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p484@script_executor/gems/net-ssh-2.6.2/lib/net/ssh.rb">
73
88
  <provider selected="true" editor-type-id="text-editor">
74
- <state line="11" column="36" selection-start="312" selection-end="312" vertical-scroll-proportion="-6.3461537" vertical-offset="0" max-vertical-offset="1500">
75
- <folding />
76
- </state>
77
- </provider>
78
- </entry>
79
- </file>
80
- <file leaf-file-name="script_locator_spec.rb" pinned="false" current="false" current-in-tab="false">
81
- <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
82
- <provider selected="true" editor-type-id="text-editor">
83
- <state line="7" column="0" selection-start="141" selection-end="141" vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="660">
84
- <folding />
85
- </state>
86
- </provider>
87
- </entry>
88
- </file>
89
- <file leaf-file-name="script_locator.rb" pinned="false" current="false" current-in-tab="false">
90
- <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
91
- <provider selected="true" editor-type-id="text-editor">
92
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="855">
93
- <folding />
94
- </state>
95
- </provider>
96
- </entry>
97
- </file>
98
- <file leaf-file-name="executable_spec.rb" pinned="false" current="false" current-in-tab="false">
99
- <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
100
- <provider selected="true" editor-type-id="text-editor">
101
- <state line="19" column="123" selection-start="414" selection-end="414" vertical-scroll-proportion="0.0" vertical-offset="750" max-vertical-offset="1470">
89
+ <state line="158" column="13" selection-start="8062" selection-end="8062" vertical-scroll-proportion="0.0" vertical-offset="1421" max-vertical-offset="3450">
102
90
  <folding />
103
91
  </state>
104
92
  </provider>
@@ -136,11 +124,11 @@
136
124
  <option value="$PROJECT_DIR$/lib/script_locator.rb" />
137
125
  <option value="$PROJECT_DIR$/lib/script_executor.rb" />
138
126
  <option value="$PROJECT_DIR$/lib/script_executor/local_command.rb" />
139
- <option value="$PROJECT_DIR$/spec/executable_spec.rb" />
140
127
  <option value="$PROJECT_DIR$/spec/script_locator_spec.rb" />
141
128
  <option value="$PROJECT_DIR$/README.md" />
142
- <option value="$PROJECT_DIR$/lib/script_executor/remote_command.rb" />
143
129
  <option value="$PROJECT_DIR$/lib/script_executor/executable.rb" />
130
+ <option value="$PROJECT_DIR$/lib/script_executor/remote_command.rb" />
131
+ <option value="$PROJECT_DIR$/spec/executable_spec.rb" />
144
132
  <option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
145
133
  <option value="$PROJECT_DIR$/CHANGES" />
146
134
  </list>
@@ -178,6 +166,7 @@
178
166
  <sortByType />
179
167
  </navigator>
180
168
  <panes>
169
+ <pane id="Scope" />
181
170
  <pane id="ProjectPane">
182
171
  <subPane>
183
172
  <PATH>
@@ -284,19 +273,34 @@
284
273
  </PATH>
285
274
  </subPane>
286
275
  </pane>
287
- <pane id="Scope" />
288
276
  </panes>
289
277
  </component>
290
278
  <component name="PropertiesComponent">
291
279
  <property name="options.splitter.main.proportions" value="0.3" />
292
280
  <property name="WebServerToolWindowFactoryState" value="false" />
293
- <property name="options.lastSelected" value="preferences.sourceCode.CoffeeScript" />
281
+ <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
294
282
  <property name="recentsLimit" value="5" />
295
283
  <property name="restartRequiresConfirmation" value="true" />
296
284
  <property name="FullScreen" value="false" />
297
285
  <property name="options.searchVisible" value="true" />
298
286
  <property name="options.splitter.details.proportions" value="0.2" />
299
287
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
288
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth0" value="189" />
289
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder0" value="0" />
290
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth1" value="191" />
291
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder1" value="1" />
292
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth2" value="195" />
293
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder2" value="2" />
294
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth3" value="989" />
295
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder3" value="3" />
296
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth0" value="189" />
297
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder0" value="0" />
298
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth1" value="191" />
299
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder1" value="1" />
300
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth2" value="195" />
301
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder2" value="2" />
302
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth3" value="989" />
303
+ <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder3" value="3" />
300
304
  </component>
301
305
  <component name="RunManager" selected="RSpec.script_locator_spec">
302
306
  <configuration default="false" name="ScriptExecutor should execute commands locally from the block of code as sudo" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
@@ -618,7 +622,7 @@
618
622
  <servers />
619
623
  </component>
620
624
  <component name="ToolWindowManager">
621
- <frame x="44" y="22" width="1636" height="1028" extended-state="6" />
625
+ <frame x="44" y="22" width="1636" height="1028" extended-state="0" />
622
626
  <editor active="true" />
623
627
  <layout>
624
628
  <window_info id="Dilbert" 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" />
@@ -629,21 +633,45 @@
629
633
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3979798" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
630
634
  <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" />
631
635
  <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" />
632
- <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" />
633
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32925683" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
636
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3290461" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
634
637
  <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" />
635
638
  <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" />
636
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30865747" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
639
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1932246" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
637
640
  <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="2" side_tool="false" content_ui="tabs" />
638
641
  <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" />
639
642
  <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" />
640
- <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" />
641
643
  <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32929292" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
644
+ <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" />
645
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32925683" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
642
646
  <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" />
643
- <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" />
644
647
  <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" />
648
+ <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" />
645
649
  <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" />
646
650
  </layout>
651
+ <layout-to-restore>
652
+ <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="5" side_tool="false" content_ui="tabs" />
653
+ <window_info id="Dilbert" 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" />
654
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.357985" sideWeight="0.9955329" order="8" side_tool="false" content_ui="tabs" />
655
+ <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="1" side_tool="false" content_ui="tabs" />
656
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="12" side_tool="false" content_ui="tabs" />
657
+ <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" />
658
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32929292" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
659
+ <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="13" side_tool="false" content_ui="tabs" />
660
+ <window_info id="Database" 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" />
661
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3979798" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
662
+ <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="9" side_tool="true" content_ui="tabs" />
663
+ <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" />
664
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3290461" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
665
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32925683" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
666
+ <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="7" side_tool="false" content_ui="tabs" />
667
+ <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" />
668
+ <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" />
669
+ <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" />
670
+ <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" />
671
+ <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" />
672
+ <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" />
673
+ <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" />
674
+ </layout-to-restore>
647
675
  </component>
648
676
  <component name="Vcs.Log.UiProperties">
649
677
  <option name="RECENTLY_FILTERED_USERS">
@@ -858,21 +886,11 @@
858
886
  <state line="14" column="56" selection-start="672" selection-end="672" vertical-scroll-proportion="0.0" vertical-offset="224" max-vertical-offset="416" />
859
887
  </provider>
860
888
  </entry>
861
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
862
- <provider selected="true" editor-type-id="text-editor">
863
- <state line="0" column="0" selection-start="0" selection-end="56" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0" />
864
- </provider>
865
- </entry>
866
889
  <entry file="file://$PROJECT_DIR$/lib/script_locator.rb">
867
890
  <provider selected="true" editor-type-id="text-editor">
868
891
  <state line="0" column="48" selection-start="40" selection-end="40" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90" />
869
892
  </provider>
870
893
  </entry>
871
- <entry file="file://$PROJECT_DIR$/lib/executable.rb">
872
- <provider selected="true" editor-type-id="text-editor">
873
- <state line="0" column="26" selection-start="26" selection-end="26" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90" />
874
- </provider>
875
- </entry>
876
894
  <entry file="file://$PROJECT_DIR$/lib/script_executor.rb">
877
895
  <provider selected="true" editor-type-id="text-editor">
878
896
  <state line="0" column="41" selection-start="41" selection-end="41" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90" />
@@ -895,69 +913,79 @@
895
913
  </entry>
896
914
  <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
897
915
  <provider selected="true" editor-type-id="text-editor">
898
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="855">
899
- <folding />
900
- </state>
916
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="855" />
901
917
  </provider>
902
918
  </entry>
903
919
  <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
904
920
  <provider selected="true" editor-type-id="text-editor">
905
- <state line="7" column="0" selection-start="141" selection-end="141" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="660">
921
+ <state line="7" column="0" selection-start="141" selection-end="141" vertical-scroll-proportion="0.11314655" vertical-offset="0" max-vertical-offset="928" />
922
+ </provider>
923
+ </entry>
924
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
925
+ <provider selected="true" editor-type-id="text-editor">
926
+ <state line="0" column="42" selection-start="0" selection-end="56" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="573">
906
927
  <folding />
907
928
  </state>
908
929
  </provider>
909
930
  </entry>
910
- <entry file="file://$PROJECT_DIR$/README.md">
911
- <provider editor-type-id="MarkdownPreviewEditor">
912
- <state />
931
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
932
+ <provider selected="true" editor-type-id="text-editor">
933
+ <state line="14" column="32" selection-start="350" selection-end="350" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1125">
934
+ <folding />
935
+ </state>
913
936
  </provider>
937
+ </entry>
938
+ <entry file="file://$PROJECT_DIR$/lib/executable.rb">
914
939
  <provider selected="true" editor-type-id="text-editor">
915
- <state line="13" column="12" selection-start="217" selection-end="217" vertical-scroll-proportion="44.296295" vertical-offset="1391" max-vertical-offset="1935">
940
+ <state line="0" column="26" selection-start="26" selection-end="26" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
916
941
  <folding />
917
942
  </state>
918
943
  </provider>
919
944
  </entry>
920
945
  <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p484@script_executor/gems/net-ssh-2.6.2/lib/net/ssh.rb">
921
946
  <provider selected="true" editor-type-id="text-editor">
922
- <state line="158" column="13" selection-start="8062" selection-end="8062" vertical-scroll-proportion="0.33274958" vertical-offset="2180" max-vertical-offset="3450">
947
+ <state line="158" column="13" selection-start="8062" selection-end="8062" vertical-scroll-proportion="0.0" vertical-offset="1421" max-vertical-offset="3450">
923
948
  <folding />
924
949
  </state>
925
950
  </provider>
926
951
  </entry>
927
952
  <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
928
953
  <provider selected="true" editor-type-id="text-editor">
929
- <state line="19" column="123" selection-start="414" selection-end="414" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1470">
954
+ <state line="100" column="43" selection-start="2350" selection-end="2350" vertical-scroll-proportion="0.0" vertical-offset="850" max-vertical-offset="1755">
930
955
  <folding />
931
956
  </state>
932
957
  </provider>
933
958
  </entry>
934
959
  <entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
935
960
  <provider selected="true" editor-type-id="text-editor">
936
- <state line="11" column="36" selection-start="312" selection-end="312" vertical-scroll-proportion="-6.3461537" vertical-offset="0" max-vertical-offset="1500">
961
+ <state line="34" column="157" selection-start="1077" selection-end="1077" vertical-scroll-proportion="0.0" vertical-offset="610" max-vertical-offset="1515">
937
962
  <folding />
938
963
  </state>
939
964
  </provider>
940
965
  </entry>
941
- <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
966
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
942
967
  <provider selected="true" editor-type-id="text-editor">
943
- <state line="14" column="32" selection-start="350" selection-end="350" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1125">
968
+ <state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="120">
944
969
  <folding />
945
970
  </state>
946
971
  </provider>
947
972
  </entry>
948
- <entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
973
+ <entry file="file://$PROJECT_DIR$/CHANGES">
949
974
  <provider selected="true" editor-type-id="text-editor">
950
- <state line="1" column="18" selection-start="39" selection-end="39" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="120">
975
+ <state line="48" column="17" selection-start="593" selection-end="593" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="840">
951
976
  <folding />
952
977
  </state>
953
978
  </provider>
954
979
  </entry>
955
- <entry file="file://$PROJECT_DIR$/CHANGES">
980
+ <entry file="file://$PROJECT_DIR$/README.md">
956
981
  <provider selected="true" editor-type-id="text-editor">
957
- <state line="46" column="26" selection-start="573" selection-end="573" vertical-scroll-proportion="0.9474606" vertical-offset="149" max-vertical-offset="780">
982
+ <state line="93" column="21" selection-start="1875" selection-end="1875" vertical-scroll-proportion="0.6911765" vertical-offset="1019" max-vertical-offset="1935">
958
983
  <folding />
959
984
  </state>
960
985
  </provider>
986
+ <provider editor-type-id="MarkdownPreviewEditor">
987
+ <state />
988
+ </provider>
961
989
  </entry>
962
990
  </component>
963
991
  </project>
data/CHANGES CHANGED
@@ -44,4 +44,8 @@
44
44
 
45
45
  == Version 1.3.5
46
46
 
47
- * Adding port as parameter.
47
+ * Adding port as parameter.
48
+
49
+ == Version 1.3.36
50
+
51
+ * Big fix.
@@ -17,14 +17,15 @@ class RemoteCommand
17
17
  end
18
18
 
19
19
  def execute commands, line_action
20
+ options[:password] = HighLine.new.ask("Enter password for #{options[:user]}: ") { |q| q.echo = '*' } if options[:password].nil?
21
+ options[:user] = user
22
+
20
23
  print commands, $stdout
21
24
 
22
25
  unless simulate
23
26
  storage = capture_output ? OutputBuffer.new : nil
24
27
  output = suppress_output ? nil : $stdout
25
28
 
26
- options[password] = HighLine.new.ask("Enter password for #{options[:user]}: ") { |q| q.echo = '*' } if options[:password].nil?
27
-
28
29
  Net::SSH.start(host, user, options) do |session|
29
30
  session.exec(commands) do |channel, _, line|
30
31
  if ask_password?(line)
@@ -1,3 +1,3 @@
1
1
  class ScriptExecutor
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
@@ -78,14 +78,33 @@ describe MyExecutable do
78
78
  result.should == ENV['USER']
79
79
  end
80
80
 
81
- it "should execute sudo command" do
82
- result = subject.execute @remote_info.merge(:sudo => true, :password => @password, :suppress_output => false) do
83
- %Q(
84
- ~/apache-tomcat-7.0.34/bin/shutdown.sh
85
- )
86
- end
81
+ #it "should execute sudo command" do
82
+ # result = subject.execute @remote_info.merge(:sudo => true, :password => @password, :suppress_output => false) do
83
+ # %Q(
84
+ # ~/apache-tomcat-7.0.34/bin/shutdown.sh
85
+ # )
86
+ # end
87
+ #
88
+ # p result
89
+ #end
90
+ end
91
+
92
+ describe "vagrant" do
93
+ before :all do
94
+ @remote_info = {
95
+ :domain => "127.0.0.1",
96
+ :user => "vagrant",
97
+ :password => "vagrant",
98
+ :port => 2222,
99
+ :remote => true,
100
+ :capture_output => true
101
+ }
102
+ end
103
+
104
+ it "should execute commands from :script parameter" do
105
+ result = subject.execute @remote_info.merge(:script => "whoami")
87
106
 
88
- p result
107
+ result.should == "vagrant"
89
108
  end
90
109
  end
91
110
 
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.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-16 00:00:00.000000000 Z
11
+ date: 2013-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline