Class: Pindo::Command::Unity::Packinit

Inherits:
Pindo::Command::Unity show all
Defined in:
lib/pindo/command/unity/packinit.rb

Constant Summary

Constants inherited from Pindo::Command

DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS

Instance Attribute Summary

Attributes inherited from Pindo::Command

#args_help_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pindo::Command

command_name, #initialize_options, run, use_cache?, #validate!

Methods included from Funlog::Mixin

#pindo_log_instance

Methods included from Pindoconfig::Mixin

#pindo_single_config

Constructor Details

#initialize(argv) ⇒ Packinit

Returns a new instance of Packinit.



38
39
40
# File 'lib/pindo/command/unity/packinit.rb', line 38

def initialize(argv)
  super
end

Class Method Details

.argumentsObject



30
31
32
# File 'lib/pindo/command/unity/packinit.rb', line 30

def self.arguments
  []
end

.optionsObject



34
35
36
# File 'lib/pindo/command/unity/packinit.rb', line 34

def self.options
  [].concat(super)
end

Instance Method Details

#runObject



42
43
44
45
46
47
# File 'lib/pindo/command/unity/packinit.rb', line 42

def run
  package_dir = Dir.pwd
  Pindo::Unity::NugetHelper.nuget_init(package_dir)
  puts "下一步:"
  puts "  运行 pindo unity pack 进行打包"
end