git_clone 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # GitClone
2
+
3
+ Wraps the git clone command for easier use.
4
+
5
+ ## Installation
6
+
7
+ $ gem install git_clone
8
+
9
+ ## Usage
10
+
11
+ $ git_clone clone {org_name/repo_name} {git clone options}
12
+
13
+ Also,
14
+
15
+ $ git_clone clone -o={org_name} {repo_name}
16
+
17
+ You could alias the command to get something like this:
18
+
19
+ $ clone {repo_name}
20
+
21
+ ## Contributing
22
+
23
+ 1. Fork it
24
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 4. Push to the branch (`git push origin my-new-feature`)
27
+ 5. Create new Pull Request
data/bin/git_clone ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'git_clone/cli'
4
+
5
+ GitClone::CLI.start
@@ -0,0 +1,30 @@
1
+ require 'thor'
2
+ require 'git_clone/version'
3
+
4
+ module GitClone
5
+ class CLI < Thor
6
+
7
+ # version
8
+ desc 'version', 'GitClone version'
9
+ map %w(-v --version) => :version
10
+ def version
11
+ puts "GitClone #{GitClone::VERSION}"
12
+ end
13
+
14
+ # clone
15
+ desc 'clone', 'clone a repo using ssh'
16
+ method_option :org,
17
+ :aliases => "-o",
18
+ :desc => "repo organization",
19
+ :type => :string
20
+ method_option :git_options,
21
+ :aliases => "-g",
22
+ :desc => "options for git clone",
23
+ :type => :string
24
+ def clone(repo)
25
+ git_repo= repo + '.git'
26
+ git_repo= options[:org] + '/' + git_repo if options[:org]
27
+ `git clone git@github.com:#{git_repo} #{options[:git_options]}`
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,3 @@
1
+ module GitClone
2
+ VERSION = "0.0.1"
3
+ end
data/lib/git_clone.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'git_clone/version'
2
+ require 'git_clone/cli'
3
+
4
+ module GitClone
5
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: git_clone
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Brian David Wetzel
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ none: false
21
+ name: thor
22
+ type: :runtime
23
+ prerelease: false
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ! '>='
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: '1.3'
36
+ none: false
37
+ name: bundler
38
+ type: :development
39
+ prerelease: false
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: '1.3'
45
+ none: false
46
+ - !ruby/object:Gem::Dependency
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ none: false
53
+ name: rake
54
+ type: :development
55
+ prerelease: false
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ none: false
62
+ description: Wrapper for git clone
63
+ email:
64
+ - briandavidwetzel@gmail.com
65
+ executables:
66
+ - git_clone
67
+ extensions: []
68
+ extra_rdoc_files: []
69
+ files:
70
+ - README.md
71
+ - lib/git_clone/cli.rb
72
+ - lib/git_clone/version.rb
73
+ - lib/git_clone.rb
74
+ - bin/git_clone
75
+ homepage: https://github.com/briandavidwetzel/git_clone
76
+ licenses:
77
+ - MIT
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ none: false
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ none: false
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 1.8.23
97
+ signing_key:
98
+ specification_version: 3
99
+ summary: Allows git user to config clone for faster use.
100
+ test_files: []
101
+ has_rdoc: