Module: GitCompound::Command::Procedure::Element::Manifest

Included in:
BuildLock, BuildManifest, Check, Show, Tasks, Update
Defined in:
lib/git_compound/command/procedure/element/manifest.rb

Overview

Manifest mixin

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(parent_class) ⇒ Object



13
14
15
16
17
18
# File 'lib/git_compound/command/procedure/element/manifest.rb', line 13

def self.included(parent_class)
  parent_class.class_eval do
    include Element::Option
    add_argument :manifest, type: :string, scope: :global
  end
end

Instance Method Details

#initialize(opts) ⇒ Object



8
9
10
11
# File 'lib/git_compound/command/procedure/element/manifest.rb', line 8

def initialize(opts)
  super
  @manifest = manifest_load(opts[:manifest])
end