INNER CODE UNIT · Ruby

self

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

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…