Sha256: 6c2cada9a920fb6a05f866e43bfdc706a99b08bbe3e9b239505850694ab1f187
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
require_relative '../ios_bundle_generate' module Pod class Command # This is an example of a cocoapods plugin adding a top-level subcommand # to the 'pod' command. # # You can also create subcommands of existing or new commands. Say you # wanted to add a subcommand to `list` to show newly deprecated pods, # (e.g. `pod list deprecated`), there are a few things that would need # to change. # # - move this file to `lib/pod/command/list/deprecated.rb` and update # the class to exist in the the Pod::Command::List namespace # - change this class to extend from `List` instead of `Command`. This # tells the plugin system that it is a subcommand of `list`. # - edit `lib/cocoapods_plugins.rb` to require this file # # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org # in the `plugins.json` file, once your plugin is released. # class Localzedloader < Command self.summary = 'langDownnloader for user' self.description = <<-DESC help user downnloade language resource DESC self.arguments = [] def initialize(argv) super project_directory = argv.option('project-directory') project_directory = Dir.pwd if project_directory.nil? @project_directory = Pathname.new(project_directory).expand_path end def self.options [ ['--project-directory=/project/dir/', 'The path to the root of the project directory'] ].concat(super) end def run UI.puts "项目路径 #{@project_directory}" BundleGenerater.generate(@project_directory) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-localzedLoader-0.1.7 | lib/cocoapods-localzedLoader/command/localzedLoader.rb |
cocoapods-localzedLoader-0.1.6 | lib/cocoapods-localzedLoader/command/localzedLoader.rb |