This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make wizard run from Commander and setup default command line args
- Loading branch information
John (J5) Palmieri
committed
Jul 11, 2012
1 parent
88cf3e1
commit 68f0e83
Showing
6 changed files
with
86 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'rhc/commands/base' | ||
require 'rhc/wizard' | ||
require 'rhc/config' | ||
|
||
module RHC::Commands | ||
class Setup < Base | ||
|
||
summary "Configure your OpenShift account" | ||
description "Runs the setup wizard to configure your OpenShift account." | ||
def run | ||
# TODO: pass in config object to wizard instead of it using RHC::Config directly | ||
w = RHC::RerunWizard.new(config.config_path) | ||
s = w.run | ||
|
||
# exit 0 on success 1 otherwise | ||
0 if s | ||
1 | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters