Class: Smokegraphy::ResourceController
- Inherits:
-
Object
- Object
- Smokegraphy::ResourceController
- Defined in:
- lib/smokegraphy/resource_controller.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #add_execute_permission(filename) ⇒ Object
- #cleanup(filename = nil) ⇒ Object
-
#close ⇒ Object
close.
-
#init ⇒ Object
initialize.
-
#initialize(config) ⇒ ResourceController
constructor
A new instance of ResourceController.
- #transfer_source_file(filename, testsuite, destname = nil) ⇒ Object
Constructor Details
#initialize(config) ⇒ ResourceController
Returns a new instance of ResourceController.
16 17 18 |
# File 'lib/smokegraphy/resource_controller.rb', line 16 def initialize(config) @config = config end |
Class Method Details
.build(config) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/smokegraphy/resource_controller.rb', line 5 def ResourceController.build(config) case (config["deploy"]) when "ftp" FtpResourceController.new(config) when "file" FileResourceController.new(config) else ResourceController.new(config) end end |
Instance Method Details
#add_execute_permission(filename) ⇒ Object
35 36 |
# File 'lib/smokegraphy/resource_controller.rb', line 35 def (filename) end |
#cleanup(filename = nil) ⇒ Object
38 39 |
# File 'lib/smokegraphy/resource_controller.rb', line 38 def cleanup(filename = nil) end |
#close ⇒ Object
close
must be called once after all tests.
29 30 |
# File 'lib/smokegraphy/resource_controller.rb', line 29 def close end |
#init ⇒ Object
initialize
must be called once before running tests
23 24 |
# File 'lib/smokegraphy/resource_controller.rb', line 23 def init end |
#transfer_source_file(filename, testsuite, destname = nil) ⇒ Object
32 33 |
# File 'lib/smokegraphy/resource_controller.rb', line 32 def transfer_source_file(filename, testsuite, destname = nil) end |