Class: Ufo::Network::Init

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions, Helper
Defined in:
lib/ufo/network/init.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_pathsObject



13
14
15
# File 'lib/ufo/network/init.rb', line 13

def self.source_paths
  [File.expand_path("../../../template/.ufo/settings/network", __FILE__)]
end

Instance Method Details

#set_network_optionsObject



17
18
19
# File 'lib/ufo/network/init.rb', line 17

def set_network_options
  configure_network_settings
end

#starter_filesObject



21
22
23
24
# File 'lib/ufo/network/init.rb', line 21

def starter_files
  filename = @options[:filename] || "default"
  template "default.yml", ".ufo/settings/network/#{filename}.yml"
end