Class: Minfra::Cli::Plugin

Inherits:
Command show all
Defined in:
lib/minfra/cli/commands/plugin.rb

Instance Method Summary collapse

Methods included from Logging

#debug, #deprecated, #error, #exit_error, #info, #warn

Methods included from Common

#run_cmd

Instance Method Details

#describeObject



7
8
9
10
11
# File 'lib/minfra/cli/commands/plugin.rb', line 7

def describe
  Minfra::Cli.cli.plugins.each do |plugin|
    puts "#{plugin.name} (#{plugin.version})"
  end
end

#installObject



13
14
15
16
17
18
# File 'lib/minfra/cli/commands/plugin.rb', line 13

def install
  Minfra::Cli.cli.plugins.each do |plugin|
    puts "setup: #{plugin.name}"
    plugin.install
  end
end