Class: TorManager::CreateEyeConfig
- Inherits:
-
Object
- Object
- TorManager::CreateEyeConfig
- Defined in:
- lib/tormanager/create_eye_config.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(params = {}) ⇒ CreateEyeConfig
constructor
A new instance of CreateEyeConfig.
Constructor Details
#initialize(params = {}) ⇒ CreateEyeConfig
Returns a new instance of CreateEyeConfig.
3 4 5 |
# File 'lib/tormanager/create_eye_config.rb', line 3 def initialize params={} @settings = params end |
Instance Method Details
#create ⇒ Object
7 8 9 10 11 |
# File 'lib/tormanager/create_eye_config.rb', line 7 def create File.open(@settings[:eye_tor_config_path], "w") do |file| file.puts read_eye_tor_config_template_and_substitute_keywords end end |