Class: Pod::Command::AppGroup
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::AppGroup
- Defined in:
- lib/pod/command/app_group.rb
Instance Attribute Summary collapse
-
#app_group ⇒ Object
readonly
Returns the value of attribute app_group.
Instance Method Summary collapse
-
#initialize(argv) ⇒ AppGroup
constructor
A new instance of AppGroup.
- #run ⇒ Object
- #store ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ AppGroup
Returns a new instance of AppGroup.
11 12 13 14 |
# File 'lib/pod/command/app_group.rb', line 11 def initialize(argv) @app_group = argv.shift_argument super end |
Instance Attribute Details
#app_group ⇒ Object (readonly)
Returns the value of attribute app_group.
9 10 11 |
# File 'lib/pod/command/app_group.rb', line 9 def app_group @app_group end |
Instance Method Details
#run ⇒ Object
22 23 24 |
# File 'lib/pod/command/app_group.rb', line 22 def run store.write :app_group, app_group end |
#store ⇒ Object
26 27 28 |
# File 'lib/pod/command/app_group.rb', line 26 def store @store ||= CocoaPods::AppGroup::Store.new end |
#validate! ⇒ Object
16 17 18 19 20 |
# File 'lib/pod/command/app_group.rb', line 16 def validate! super verify_podfile_exists! help! 'A app-group is required.' unless app_group end |