Class: CLAide::Plugins::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/claide/command/plugins_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = 'default name', plugin_prefix = 'claide', plugin_list_url = 'https://github.com/cocoapods/claide-plugins/something.json', plugin_template_url = 'https://github.com/cocoapods/claide-plugins-template') ⇒ Configuration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
26
# File 'lib/claide/command/plugins_config.rb', line 18

def initialize(name = 'default name',
               plugin_prefix = 'claide',
               plugin_list_url = 'https://github.com/cocoapods/claide-plugins/something.json',
               plugin_template_url = 'https://github.com/cocoapods/claide-plugins-template')
  @name = name
  @plugin_prefix = plugin_prefix
  @plugin_list_url = plugin_list_url
  @plugin_template_url = plugin_template_url
end

Instance Attribute Details

#nameObject

name of the plugin



7
8
9
# File 'lib/claide/command/plugins_config.rb', line 7

def name
  @name
end

#plugin_list_urlObject

url for JSON file that holds list of plugins to show when searching



13
14
15
# File 'lib/claide/command/plugins_config.rb', line 13

def plugin_list_url
  @plugin_list_url
end

#plugin_prefixObject

prefix to use when searching for gems to load at runtime



10
11
12
# File 'lib/claide/command/plugins_config.rb', line 10

def plugin_prefix
  @plugin_prefix
end

#plugin_template_urlObject

url for repo that holds template to use when creating a new plugin



16
17
18
# File 'lib/claide/command/plugins_config.rb', line 16

def plugin_template_url
  @plugin_template_url
end