Class: Nucleon::Action::Network::Create
- Inherits:
-
Object
- Object
- Nucleon::Action::Network::Create
- Includes:
- Mixin::Action::Project
- Defined in:
- lib/nucleon/action/network/create.rb
Class Method Summary collapse
-
.describe ⇒ Object
—————————————————————————– Info.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#configure ⇒ Object
—————————————————————————– Settings.
-
#execute ⇒ Object
—————————————————————————– Operations.
-
#ignore ⇒ Object
—.
Class Method Details
.describe ⇒ Object
Info
12 13 14 |
# File 'lib/nucleon/action/network/create.rb', line 12 def self.describe super(:network, :create, 1000) end |
Instance Method Details
#arguments ⇒ Object
32 33 34 |
# File 'lib/nucleon/action/network/create.rb', line 32 def arguments [ :project_reference ] end |
#configure ⇒ Object
Settings
19 20 21 22 23 24 |
# File 'lib/nucleon/action/network/create.rb', line 19 def configure super do config.defaults(CORL.action_config(:project_create)) config[:project_reference].default = 'github:::coralnexus/network-template' end end |
#execute ⇒ Object
Operations
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/nucleon/action/network/create.rb', line 39 def execute super(false) do info('start') project = project_load(settings[:path], true, true) myself.status = code.project_failure unless project if project.remote(:origin) =~ /coralnexus\/network\-template/ project.delete_remote(:origin) project.delete_remote(:edit) end end end |
#ignore ⇒ Object
28 29 30 |
# File 'lib/nucleon/action/network/create.rb', line 28 def ignore node_ignore end |