qypod 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 570c2c964a3eb8d5d2f388bd141425e134e3a044fce7f2bbda6aeaeabf9f4506
4
+ data.tar.gz: d17cc43bda5adbdf710b340bae0f47145c3f32ab14c3114082c0ebfec9fd5606
5
+ SHA512:
6
+ metadata.gz: eb2c182b977a5b4ec52547f97d772531ff18f5590d5b93e4703996fb1d818856a708251d2e447c2d565d2c1fc5a9e9e1d1c4b8103fb2e796c93d3664c061af02
7
+ data.tar.gz: ee9d44cd976367cc13aa81391b7a3cd063b7646c3cc15f21049cbadc0fb7eadb73bbea3482abe4f6afc7e37ae14f0bafb21f3f8a0ebaf54e71b1dd520e7b6d22
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # QYPod
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/qypod`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'qypod'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install qypod
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/qypod.
data/bin/qypod ADDED
@@ -0,0 +1,3 @@
1
+ require 'qypod'
2
+
3
+ QYPod.create(ARGV[0])
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module QYPod
4
+ VERSION = "0.1.1"
5
+ end
data/lib/qypod.rb ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module QYPod
4
+ def self.create(pod_name)
5
+
6
+ system "git clone ssh://git@gitlab.qiyi.domain:10022/itools/qy-pod-template.git #{pod_name}"
7
+
8
+ exit_code = $?.exitstatus
9
+ if exit_code != 0
10
+ return
11
+ end
12
+
13
+ Dir.chdir(pod_name) do
14
+ system "ruby _CONFIGURE.rb #{pod_name}"
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: qypod
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - baixiangyu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: create a pod with a template. include demo/test/Pod-CI ...
14
+ email:
15
+ - baixiangyu@qiyi.com
16
+ executables:
17
+ - qypod
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - bin/qypod
23
+ - lib/qypod.rb
24
+ - lib/qypod/version.rb
25
+ homepage: https://rubygems.org/profiles/bxyfighting
26
+ licenses: []
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.2.27
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: create a pod with a template.
47
+ test_files: []