class Deputy53::CLI
CommandLine Interface
Public Instance Methods
assign(subdomain, user = nil)
click to toggle source
# File lib/deputy53/cli.rb, line 11 def assign(subdomain, user = nil) subdomain = "#{subdomain}." unless subdomain.end_with? '.' user ||= subdomain.split('.').slice(0..-3).join('.') Assigner.new.assign(subdomain, user) end
delegate(subdomain)
click to toggle source
# File lib/deputy53/cli.rb, line 7 def delegate(subdomain) Agent.new(subdomain).delegate end
policy(subdomain)
click to toggle source
# File lib/deputy53/cli.rb, line 17 def policy(subdomain) subdomain = "#{subdomain}." unless subdomain.end_with? '.' Assigner.new.policy(subdomain) end