INNER CODE UNIT · Ruby

self

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

      def self.provision
        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 Provision
              b.use ModifyProvisionPath
              b.use SyncedFolders
            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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…