Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
33b60b6d
Commit
33b60b6d
authored
Sep 09, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command] Remove Pod::Command::Help
Closes #2156.
parent
0c80af37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
48 deletions
+0
-48
command.rb
lib/cocoapods/command.rb
+0
-1
help.rb
lib/cocoapods/command/help.rb
+0
-23
help_spec.rb
spec/functional/command/help_spec.rb
+0
-23
command_spec.rb
spec/unit/command_spec.rb
+0
-1
No files found.
lib/cocoapods/command.rb
View file @
33b60b6d
...
@@ -7,7 +7,6 @@ module Pod
...
@@ -7,7 +7,6 @@ module Pod
end
end
class
Command
<
CLAide
::
Command
class
Command
<
CLAide
::
Command
require
'cocoapods/command/help'
require
'cocoapods/command/inter_process_communication'
require
'cocoapods/command/inter_process_communication'
require
'cocoapods/command/lib'
require
'cocoapods/command/lib'
require
'cocoapods/command/list'
require
'cocoapods/command/list'
...
...
lib/cocoapods/command/help.rb
deleted
100644 → 0
View file @
0c80af37
module
Pod
class
Command
class
Help
<
Command
self
.
summary
=
'Show help for the given command.'
self
.
arguments
=
[
CLAide
::
Argument
.
new
(
'COMMAND'
,
false
),
]
def
initialize
(
argv
)
@help_command
=
Pod
::
Command
.
parse
(
argv
)
super
end
def
run
help_command
.
help!
end
private
attr_reader
:help_command
end
end
end
spec/functional/command/help_spec.rb
deleted
100644 → 0
View file @
0c80af37
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
'Command::Help'
do
extend
SpecHelper
::
Command
it
'invokes the right command with --help flag'
do
command
=
command
(
'help'
,
'repo'
,
'push'
)
command
.
send
(
:help_command
).
should
.
be
.
instance_of
Pod
::
Command
::
Repo
::
Push
lambda
{
command
.
run
}.
should
.
raise
CLAide
::
Help
end
it
'raises help! if no other command is passed'
do
lambda
{
command
(
'help'
).
run
}.
should
.
raise
CLAide
::
Help
end
it
'shows the right usage'
do
args
=
[
CLAide
::
Argument
.
new
(
'COMMAND'
,
false
)]
Pod
::
Command
::
Help
.
arguments
.
should
.
equal
args
end
end
end
spec/unit/command_spec.rb
View file @
33b60b6d
...
@@ -3,7 +3,6 @@ require File.expand_path('../../spec_helper', __FILE__)
...
@@ -3,7 +3,6 @@ require File.expand_path('../../spec_helper', __FILE__)
module
Pod
module
Pod
describe
Command
do
describe
Command
do
it
'returns the proper command class'
do
it
'returns the proper command class'
do
Command
.
parse
(
%w( help )
).
should
.
be
.
instance_of
Command
::
Help
Command
.
parse
(
%w( install )
).
should
.
be
.
instance_of
Command
::
Install
Command
.
parse
(
%w( install )
).
should
.
be
.
instance_of
Command
::
Install
Command
.
parse
(
%w( list )
).
should
.
be
.
instance_of
Command
::
List
Command
.
parse
(
%w( list )
).
should
.
be
.
instance_of
Command
::
List
Command
.
parse
(
%w( outdated )
).
should
.
be
.
instance_of
Command
::
Outdated
Command
.
parse
(
%w( outdated )
).
should
.
be
.
instance_of
Command
::
Outdated
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment