Class: Tuya::Command::Repo

Inherits:
Tuya::Command show all
Defined in:
lib/tuya/cli/odm/command/repo.rb,
lib/tuya/cli/odm/command/repo/push.rb

Direct Known Subclasses

Push

Defined Under Namespace

Classes: Push

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Repo

def validate! # help! “name need” unless @name end



30
31
32
33
# File 'lib/tuya/cli/odm/command/repo.rb', line 30

def initialize(argv)
  super

end

Class Method Details

.optionsObject



18
19
20
21
22
23
24
# File 'lib/tuya/cli/odm/command/repo.rb', line 18

def self.options
  [
    ['--version=your-version', 'version if you want do a special version'],
    ['--podspec', 'version if you want do a special version'],
    ['--commit', 'use --no-commit']
  ].concat(super)
end

Instance Method Details

#runObject



35
36
37
# File 'lib/tuya/cli/odm/command/repo.rb', line 35

def run
  super
end