lib/cuken/cucumber/ssh.rb in cuken-0.1.13 vs lib/cuken/cucumber/ssh.rb in cuken-0.1.15
- old
+ new
@@ -12,46 +12,14 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-load 'aruba/cucumber.rb' unless defined? ::Aruba
+#load 'aruba/cucumber.rb' unless defined? ::Aruba
World(::Cuken::Api::Ssh)
-Before do
- @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 5 ? @aruba_timeout_seconds = 5 : @aruba_timeout_seconds
-end
+require 'cuken/cucumber/ssh/common'
+require 'cuken/cucumber/ssh/hooks'
-Given /^a SSH client user "([^\"]*)"$/ do |name|
- ssh_client_hostname name
-end
-
-Given /^a SSH client user$/ do
- ssh_client_hostname
-end
-
-Given /^a SSH client hostname "([^\"]*)"$/ do |name|
- ssh_client_hostname name
-end
-
-Given /^a SSH client hostname$/ do
- ssh_client_hostname
-end
-
-Given /^default ssh-forever options$/ do
- ssh_forever_options(:default)
-end
-
-Given /^the ssh-forever options:$/ do |table|
- ssh_forever_options(table)
-end
-
-When /^I initialize password-less SSH access for:$/ do |table|
- ssh_init_password_less_batch(table)
-end
-
-Given /^I initialize password-less SSH access$/ do
- ssh_init_password_less
-end