Module: Wpcli

Defined in:
lib/wpcli/rails.rb,
lib/wpcli/client.rb,
lib/wpcli/version.rb,
lib/rails/generators/wpcli/config/config_generator.rb

Defined Under Namespace

Classes: Client, ConfigGenerator

Constant Summary collapse

VERSION =
"0.2.9"

Instance Method Summary collapse

Instance Method Details

#wp_apps?Boolean

Returns:

  • (Boolean)

7
8
9
10
# File 'lib/wpcli/rails.rb', line 7

def wp_apps?
  load_apps if @apps.nil?
  !@apps.empty?
end

#wpcli(key) ⇒ Object


2
3
4
5
# File 'lib/wpcli/rails.rb', line 2

def wpcli key
  load_apps if @apps.nil?
  @apps[key]
end