diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-05-28 09:49:14 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-05-28 09:49:14 -0400 |
commit | 43d08da2a4af64015cd0fd83b36d843e51b21b0d (patch) | |
tree | 3a96ee3547c7a5a66c8ca4b7afb71263ba8a28aa /lib/launch_helper.rb | |
parent | 551562cd54f06db6e96e6f8d8986bc08a27c7d8a (diff) | |
parent | 8fc2fe0b7ecf71b675158eabcc00a3a14218abe2 (diff) | |
download | openshift-43d08da2a4af64015cd0fd83b36d843e51b21b0d.tar.gz openshift-43d08da2a4af64015cd0fd83b36d843e51b21b0d.tar.bz2 openshift-43d08da2a4af64015cd0fd83b36d843e51b21b0d.tar.xz openshift-43d08da2a4af64015cd0fd83b36d843e51b21b0d.zip |
Merge pull request #252 from twiest/pr
Removed cloud.rb and it's associated libraries as it's no longer used.
Diffstat (limited to 'lib/launch_helper.rb')
-rw-r--r-- | lib/launch_helper.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/launch_helper.rb b/lib/launch_helper.rb deleted file mode 100644 index 0fe5ea6dc..000000000 --- a/lib/launch_helper.rb +++ /dev/null @@ -1,30 +0,0 @@ -module OpenShift - module Ops - class LaunchHelper - MYDIR = File.expand_path(File.dirname(__FILE__)) - - def self.expand_name(name) - return [name] unless name =~ /^([a-zA-Z0-9\-]+)\{(\d+)-(\d+)\}$/ - - # Regex matched, so grab the values - start_num = $2 - end_num = $3 - - retval = [] - start_num.upto(end_num) do |i| - retval << "#{$1}#{i}" - end - - return retval - end - - def self.get_gce_host_types() - return Dir.glob("#{MYDIR}/../playbooks/gce/*").map { |d| File.basename(d) } - end - - def self.get_aws_host_types() - return Dir.glob("#{MYDIR}/../playbooks/aws/*").map { |d| File.basename(d) } - end - end - end -end |