Class: Smokegraphy::ResourceController

Inherits:
Object
  • Object
show all
Defined in:
lib/smokegraphy/resource_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

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 add_execute_permission(filename)
end

#cleanup(filename = nil) ⇒ Object



38
39
# File 'lib/smokegraphy/resource_controller.rb', line 38

def cleanup(filename = nil)
end

#closeObject

close

must be called once after all tests.



29
30
# File 'lib/smokegraphy/resource_controller.rb', line 29

def close
end

#initObject

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