Class: Torpedo::Tasks
- Inherits:
-
Thor
- Object
- Thor
- Torpedo::Tasks
- Defined in:
- lib/torpedo.rb
Instance Method Summary collapse
- #all ⇒ Object
- #cleanup ⇒ Object
- #fire ⇒ Object
- #flavors ⇒ Object
- #images ⇒ Object
- #keypairs ⇒ Object
- #limits ⇒ Object
- #orchestration ⇒ Object
- #servers ⇒ Object
- #ssh(options = (options or {})) ⇒ Object
- #volumes ⇒ Object
Instance Method Details
#all ⇒ Object
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/torpedo.rb', line 158 def all require 'torpedo/compute/keypairs' require 'torpedo/orchestration/stacks' require 'torpedo/compute/flavors' require 'torpedo/compute/limits' require 'torpedo/compute/images' require 'torpedo/volume/volumes' require 'torpedo/compute/servers' require 'torpedo/metering/meters' require 'torpedo/cleanup' if KEYPAIR_ENABLED TORPEDO_TEST_SUITE << Torpedo::Compute::Keypairs.suite end if ORCHESTRATION_ENABLED TORPEDO_TEST_SUITE << Torpedo::Orchestration::Stacks.suite end TORPEDO_TEST_SUITE << Torpedo::Compute::Flavors.suite TORPEDO_TEST_SUITE << Torpedo::Compute::Limits.suite TORPEDO_TEST_SUITE << Torpedo::Compute::Images.suite if VOLUME_ENABLED TORPEDO_TEST_SUITE << Torpedo::Volume::Volumes.suite end TORPEDO_TEST_SUITE << Torpedo::Compute::Servers.suite if METERING_ENABLED TORPEDO_TEST_SUITE << Torpedo::Metering::Meters.suite end TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#cleanup ⇒ Object
151 152 153 154 155 |
# File 'lib/torpedo.rb', line 151 def cleanup require 'torpedo/cleanup' TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#fire ⇒ Object
203 204 205 |
# File 'lib/torpedo.rb', line 203 def fire invoke :all end |
#flavors ⇒ Object
78 79 80 81 82 |
# File 'lib/torpedo.rb', line 78 def flavors require 'torpedo/compute/flavors' TORPEDO_TEST_SUITE << Torpedo::Compute::Flavors.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#images ⇒ Object
92 93 94 95 96 |
# File 'lib/torpedo.rb', line 92 def images require 'torpedo/compute/images' TORPEDO_TEST_SUITE << Torpedo::Compute::Images.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#keypairs ⇒ Object
120 121 122 123 124 125 126 |
# File 'lib/torpedo.rb', line 120 def keypairs require 'torpedo/compute/keypairs' require 'torpedo/cleanup' TORPEDO_TEST_SUITE << Torpedo::Compute::Keypairs.suite TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#limits ⇒ Object
85 86 87 88 89 |
# File 'lib/torpedo.rb', line 85 def limits require 'torpedo/compute/limits' TORPEDO_TEST_SUITE << Torpedo::Compute::Limits.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#orchestration ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/torpedo.rb', line 138 def orchestration require 'torpedo/compute/keypairs' require 'torpedo/orchestration/stacks' require 'torpedo/cleanup' if KEYPAIR_ENABLED TORPEDO_TEST_SUITE << Torpedo::Compute::Keypairs.suite end TORPEDO_TEST_SUITE << Torpedo::Orchestration::Stacks.suite TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#servers ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/torpedo.rb', line 99 def servers require 'torpedo/volume/volumes' require 'torpedo/compute/keypairs' require 'torpedo/compute/servers' require 'torpedo/metering/meters' require 'torpedo/cleanup' if VOLUME_ENABLED TORPEDO_TEST_SUITE << Torpedo::Volume::Volumes.suite end if KEYPAIR_ENABLED TORPEDO_TEST_SUITE << Torpedo::Compute::Keypairs.suite end TORPEDO_TEST_SUITE << Torpedo::Compute::Servers.suite if METERING_ENABLED TORPEDO_TEST_SUITE << Torpedo::Metering::Meters.suite end TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |
#ssh(options = (options or {})) ⇒ Object
193 194 195 196 197 198 199 200 |
# File 'lib/torpedo.rb', line 193 def ssh(=( or {})) require 'torpedo/net_util' if Torpedo::NetUtil.ssh_test([:ip_address], nil, [:test_command], [:test_output], [:admin_password]) then exit 0 else exit 1 end end |
#volumes ⇒ Object
129 130 131 132 133 134 135 |
# File 'lib/torpedo.rb', line 129 def volumes require 'torpedo/volume/volumes' require 'torpedo/cleanup' TORPEDO_TEST_SUITE << Torpedo::Volume::Volumes.suite TORPEDO_TEST_SUITE << Torpedo::Cleanup.suite exit Test::Unit::UI::Console::TestRunner.run(TorpedoTests).passed? end |