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!, report_error, run

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

#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