On Mon, 2012-05-21 at 12:06 +0200, [email protected] wrote: > From: Michal Fojtik <[email protected]> > > > Signed-off-by: Michal fojtik <[email protected]> > --- > server/Rakefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > > diff --git a/server/Rakefile b/server/Rakefile > index 147cdcf..5d205ce 100644 > --- a/server/Rakefile > +++ b/server/Rakefile > @@ -193,3 +193,54 @@ namespace :mock do > > end > end > + > +namespace :openshift do > + > + desc "Deploy Deltacloud API to OpenShift" > + task :deploy do > + print "RHN or OpenShift login with OpenShift Express access: " > + STDOUT.flush > + login = STDIN.gets.chomp > + print "Password: " > + system "stty -echo" > + password = STDIN.gets.chomp > + system "stty echo" > + puts `rhc-create-app --rhlogin #{login} --app deltacloudtest --password > '#{password}' --type ruby-1.8` > + end > +end
Oooh .. nice David
