Class: Pod::Command::Env

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods/command/env.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, ensure_not_root_or_allowed!, git_version, #installer_for_config, report_error, run, #verify_lockfile_exists!, verify_minimum_git_version!, #verify_podfile_exists!, verify_xcode_license_approved!

Methods included from Pod::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Env

Returns a new instance of Env.



14
15
16
17
# File 'lib/cocoapods/command/env.rb', line 14

def initialize(argv)
  super
  config.silent = false
end

Class Method Details

.optionsObject



9
10
11
12
# File 'lib/cocoapods/command/env.rb', line 9

def self.options
  options = []
  options.concat(super.reject { |option, _| option == '--silent' })
end

Instance Method Details

#actual_pathObject (private)



61
62
63
# File 'lib/cocoapods/command/env.rb', line 61

def actual_path
  $PROGRAM_NAME
end

#executable_pathObject (private)



51
52
53
54
55
56
57
58
59
# File 'lib/cocoapods/command/env.rb', line 51

def executable_path
  <<-EOS
### Installation Source

```
Executable Path: #{actual_path}
```
EOS
end

#markdown_podfileObject



41
42
43
# File 'lib/cocoapods/command/env.rb', line 41

def markdown_podfile
  UI::ErrorReport.markdown_podfile
end

#plugins_stringObject



45
46
47
# File 'lib/cocoapods/command/env.rb', line 45

def plugins_string
  UI::ErrorReport.plugins_string
end

#reportObject



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/cocoapods/command/env.rb', line 23

def report
  <<-EOS

#{stack}
#{executable_path}
### Plugins

```
#{plugins_string}
```
#{markdown_podfile}
EOS
end

#runObject



19
20
21
# File 'lib/cocoapods/command/env.rb', line 19

def run
  UI.puts report
end

#stackObject



37
38
39
# File 'lib/cocoapods/command/env.rb', line 37

def stack
  UI::ErrorReport.stack
end