Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Revert "Merge pull request #10 from fotioslindiakos/config_file" - so…
Browse files Browse the repository at this point in the history
…me failing tests, will retry. Be sure to resubmit pull request.

This reverts commit d27b396, reversing
changes made to 169cd1d.
  • Loading branch information
smarterclayton committed May 1, 2012
1 parent d27b396 commit 97036cb
Show file tree
Hide file tree
Showing 18 changed files with 89 additions and 691 deletions.
5 changes: 2 additions & 3 deletions express/bin/rhc-app
Expand Up @@ -75,6 +75,7 @@ def validate_args(val_type=true, val_cartridge=false, val_timeout=true)

# Pull in configs from files
$libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

$opt['rhlogin'] = get_var('default_rhlogin') unless $opt['rhlogin']
p_usage if !RHC::check_rhlogin($opt['rhlogin'])
Expand All @@ -91,9 +92,7 @@ def validate_args(val_type=true, val_cartridge=false, val_timeout=true)
p_usage
end

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = $opt["debug"] ? true : false
RHC::debug(debug)

RHC::timeout($opt["timeout"], get_var('timeout')) if val_timeout
Expand Down
8 changes: 5 additions & 3 deletions express/bin/rhc-chk
Expand Up @@ -76,10 +76,12 @@ $global_config = @global_config

# Pull in configs from files
$libra_server = get_var('libra_server')
$debug = get_var('debug') == 'false' ? nil : get_var('debug')

$debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false

if $opt["debug"]
$debug = true
end
RHC::debug($debug)

RHC::timeout($opt["timeout"], get_var('timeout'))
Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-create-app
Expand Up @@ -82,14 +82,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

p_usage 0 if opt["help"]

p_usage if 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt["debug"]

RHC::debug(debug)

Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-create-domain
Expand Up @@ -53,6 +53,7 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')
opt['rhlogin'] = get_var('default_rhlogin') unless opt['rhlogin']

ssh_key_file_path = get_kfile(false)
Expand All @@ -65,9 +66,7 @@ p_usage 0 if opt["help"]
p_usage if 0 != ARGV.length


debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt["debug"]

RHC::debug(debug)

Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-ctl-app
Expand Up @@ -67,6 +67,7 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')
ssh_config = "#{ENV['HOME']}/.ssh/config"
ssh_config_d = "#{ENV['HOME']}/.ssh/"

Expand All @@ -76,9 +77,7 @@ end
p_usage 0 if opt["help"]
p_usage if 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt["debug"]

RHC::debug(debug)

Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-ctl-domain
Expand Up @@ -65,14 +65,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')
opt['rhlogin'] = get_var('default_rhlogin') unless opt['rhlogin']

p_usage 0 if opt['help']
p_usage if 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt['debug']

RHC::debug(debug)

Expand Down
6 changes: 2 additions & 4 deletions express/bin/rhc-domain
Expand Up @@ -47,16 +47,14 @@ def validate_args(val_namespace=true, val_timeout=true)

# Pull in configs from files
$libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

$opt['rhlogin'] = get_var('default_rhlogin') unless $opt['rhlogin']
p_usage if !RHC::check_rhlogin($opt['rhlogin'])

p_usage if (val_namespace && !RHC::check_namespace($opt['namespace']))

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false

debug = $opt["debug"] ? true : false
RHC::debug(debug)

RHC::timeout($opt["timeout"], get_var('timeout')) if val_timeout
Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-domain-info
Expand Up @@ -49,14 +49,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

p_usage 0 if opt["help"]

p_usage if 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt["debug"]

RHC::debug(debug)

Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-port-forward
Expand Up @@ -47,14 +47,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

p_usage 0 if opt['help']

p_usage if !opt['app'] || 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt['debug']

RHC::debug(debug)

Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-snapshot
Expand Up @@ -56,14 +56,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

p_usage 0 if opt["help"]

p_usage if !opt['app'] || 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt["debug"]

RHC::debug(debug)

Expand Down
6 changes: 2 additions & 4 deletions express/bin/rhc-sshkey
Expand Up @@ -38,14 +38,12 @@ def validate_args(val_id=true)

# Pull in configs from files
$libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

$opt['rhlogin'] = get_var('default_rhlogin') unless $opt['rhlogin']
p_usage if !RHC::check_rhlogin($opt['rhlogin'])

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false

debug = $opt["debug"] ? true : false
RHC::debug(debug)

p_usage if val_id && !RHC::check_key($opt['identifier'])
Expand Down
5 changes: 2 additions & 3 deletions express/bin/rhc-tail-files
Expand Up @@ -52,14 +52,13 @@ check_cpath(opt)

# Pull in configs from files
libra_server = get_var('libra_server')
debug = get_var('debug') == 'false' ? nil : get_var('debug')

p_usage 0 if opt['help']

p_usage if !opt['app'] || 0 != ARGV.length

debug = $opt["debug"] ?
true :
get_var('debug') == 'true' ? true : false
debug = true if opt['debug']

RHC::debug(debug)

Expand Down

0 comments on commit 97036cb

Please sign in to comment.