INNER CODE UNIT · Ruby

self

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

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…