Class: CLAide::Plugins::Configuration
- Inherits:
-
Object
- Object
- CLAide::Plugins::Configuration
- Defined in:
- lib/claide/command/plugins_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
name of the plugin.
-
#plugin_list_url ⇒ Object
url for JSON file that holds list of plugins to show when searching.
-
#plugin_prefix ⇒ Object
prefix to use when searching for gems to load at runtime.
-
#plugin_template_url ⇒ Object
url for repo that holds template to use when creating a new plugin.
Instance Method Summary collapse
-
#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
constructor
A new instance of Configuration.
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
#name ⇒ Object
name of the plugin
7 8 9 |
# File 'lib/claide/command/plugins_config.rb', line 7 def name @name end |
#plugin_list_url ⇒ Object
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_prefix ⇒ Object
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_url ⇒ Object
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 |