# File lib/homesick/cli.rb, line 310 def exec_all(*args) unless args.count > 0 say_status :error, 'You must pass a shell command to execute', :red exit(1) end full_command = args.join(' ') inside_each_castle do |castle| say_status "exec '#{full_command}'", "#{options[:pretend] ? 'Would execute' : 'Executing command'} '#{full_command}' in castle '#{castle}'", :green system(full_command) end end