INNER CODE UNIT · Ruby

self

devopsgroup-io/vagrant-digitalocean · lib/vagrant-digitalocean/actions.rb:38

      def self.ssh
        return Vagrant::Action::Builder.new.tap do |builder|
          builder.use ConfigValidate
          builder.use Call, CheckState do |env, b|
            case env[:machine_state]
            when :active
              b.use SSHExec
            when :off
              env[:ui].info I18n.t('vagrant_digital_ocean.info.off')
            when :not_created
              env[:ui].info I18n.t('vagrant_digital_ocean.info.not_created')
            end
          end
        end
      end

      def self.ssh_run
        return Vagrant::Action::Builder.new.tap do |builder|

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…