Sha256: 851df7aa0b197f9af025c4c319d4656a194baf4ebc5c5ce31612c76212852b0b

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 Bytes

Contents

require 'tempfile'
require 'json'
require "rubygems"


def msg(title, &block)
  puts "\n" + "-"*10 + title + "-"*10
  block.call
  puts "-"*10 + "-------" + "-"*10 + "\n"
end

def print_usage
  puts <<EOF
  Usage: calabash-android <command-name> [parameters] [options]
  <command-name> can be one of
    help
      prints more detailed help information.
    gen
      generate a features folder structure.
    setup 
      sets up a non-default keystore to use with this test project.
    build <apk>
      builds the test server that will be used when testing the app.
    run <apk>
      runs Cucumber in the current folder with the enviroment needed.
    version
      prints the gem version

  <options> can be
    -v, --verbose
      Turns on verbose logging
EOF
end

def print_help
  file = File.join(File.dirname(__FILE__), '..', 'doc', 'calabash-android-help.txt')
  #system("less #{file}")
  #TODO
  print_usage
end

def is_json?(str)
  str[0..0] == '{'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calabash-android-0.2.15 bin/calabash-android-helpers.rb
calabash-android-0.2.14 bin/calabash-android-helpers.rb